Can activity name length be modified in adobe campaign classic version 7? | Community
Skip to main content
Level 4
July 30, 2023
Question

Can activity name length be modified in adobe campaign classic version 7?

  • July 30, 2023
  • 3 replies
  • 2519 views

Hi Everyone,

 

I'm trying to build a Automated waterfall via script that will take out the activity name and count of each and every task executed and push it to my array. After digging long time in workflow schema i found a element called visual state, which stores the activity name and count for that activity as XML logs when workflow gets executed.

I thought to make use of this logs and create a script which will extract activity name and activity count from XML logs and store it in my JSON object.


I achieved doing it flawlessly, but the issue is if i modify the activity name in the workflow, only partial text is considered and the remaining text is truncated, can i understand why this is happening?

Example for my scenario:

Query condition given: "Query: email does not start with 'D' and primary key is not empty and mobile is not empty"
If i copy paste the same condition in my activity name: "Query: email does not start with 'D' and primary key is not empt"

Only partial text is showing remaining got truncated and if i check the max length accepted by a activity name - it is "64"

 

If i can able to store any length of text or condition in my activity name, I can store the same in visual state attribute in workflow schema. 

Below is the screenshot:

 

 

Is there any method that can be used to increase the length of my activity name?

Also, please confirm if I make changes to the activity name that anything will be affected on the backend or not.

Thanks in advance.

 

Regards

Sujith Kumar

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

3 replies

ParthaSarathy
Community Advisor
Community Advisor
July 31, 2023

Hi @sujith_02kumar ,

By default the character limit of 'activity name' is 64. To increase it, say to make character limit as 100, Extend xtk:workflow schema.
(Create a new schema > select 'extension of a schema' > schema:xtk:workflow )

Add the below script in it,

<element label="Activity name" length="100" name="activityName" type="string"/>

Save it, Update the database structure, disconnect & reconnect.

This will increase the character limit to 100.

 

<srcSchema created="2023-07-31 03:43:02.957Z" desc="Workflows definitions" extendedSchema="xtk:workflow" img="xtk:workflow.png" label="Workflows" labelSingular="Workflow" lastModified="2023-07-31 03:43:02.957Z" mappingType="sql" name="workflow" namespace="abcd" xtkschema="xtk:srcSchema"> <createdBy _cs="Partha"/> <modifiedBy _cs="Partha"/> <element label="Activity name" length="100" name="activityName" type="string"/> <element desc="Workflows definitions" img="xtk:workflow.png" label="Workflows" labelSingular="Workflow" name="workflow"/> </srcSchema>

 

~  ParthaSarathy S~  Click here to join ADOBE CAMPAIGN USER GROUP for Quarterly In-person | Hybrid | Virtual Meetups
Level 4
July 31, 2023

Hi @parthasarathy ,

 

Thanks for your reply, but if I extend the schema using the element, I'm getting below error while saving or when I try to preview the xml

 

 

Error I'm getting when I save:

Unable to find XPath element 'activity' in schema 'xtk:workflow'.
GEN-300014 Error while processing the template='xtk:workflow:activity' directive in the 'crm:workflow' schema.
Unable to find XPath element 'workflowState' in schema 'xtk:workflow'.
GEN-300014 Error while processing the template='xtk:workflow:workflowState' directive in the 'nms:workflow' schema.
Unable to find XPath element 'activityName' in schema 'xtk:workflow'.
GEN-300014 Error while processing the template='xtk:workflow:activityName' directive in the 'xtk:workflowEvent' schema.
Unable to find XPath element 'affinity' in schema 'xtk:workflow'.
GEN-300014 Error while processing the template='xtk:workflow:affinity' directive in the 'xtk:workflowJob' schema.
Unable to find XPath element 'activityName' in schema 'xtk:workflow'.
GEN-300014 Error while processing the template='xtk:workflow:activityName' directive in the 'xtk:workflowLog' schema.
Unable to find XPath element 'hostname' in schema 'xtk:workflow'.
GEN-300014 Error while processing the template='xtk:workflow:hostname' directive in the 'xtk:workflowTask' schema.
------

 

Please help with the above error

 

Regards

Sujith Kumar

 

ParthaSarathy
Community Advisor
Community Advisor
August 2, 2023

@sujith_02kumar ,

in the same extended schema, change the previous script as below, update database structure.

 

<srcSchema created="2023-07-31 03:43:02.957Z" desc="Workflows definitions" extendedSchema="xtk:workflow" img="xtk:workflow.png" label="Workflows" labelSingular="Workflow" lastModified="2023-07-31 03:43:02.957Z" mappingType="sql" name="workflow" namespace="abcd" xtkschema="xtk:srcSchema"> <createdBy _cs="Partha"/> <modifiedBy _cs="Partha"/> <element name="activity"> <attribute dataPolicy="identifier" default="ColName()" label="Name" length="100" name="name" type="string"/> </element> <element name="start"> <attribute dataPolicy="identifier" default="ColName()" label="Name" length="100" name="name" type="string"/> </element> <element desc="Workflows definitions" img="xtk:workflow.png" label="Workflows" labelSingular="Workflow" name="workflow"/> </srcSchema>

 

 

Update database structure > disconnect - reconnect 

Create a new workflow, and create a new 'Start' activity, and check you're able to enter name for it with the length more that 64 and less that 100 characters.

 

This will work for start activity! Let me know if it worked for you in your instance.

~  ParthaSarathy S~  Click here to join ADOBE CAMPAIGN USER GROUP for Quarterly In-person | Hybrid | Virtual Meetups
LakshmiPravallika
Community Advisor
Community Advisor
August 1, 2023

Hi @sujith_02kumar ,

 

In addition to @parthasarathy 's approach, Please modify your code..

 

Please modify your code after you extend the Data base schema as shown in below screenshot:

 

 

 

 

After saving this, Please update your Database Structure and check whether you are able to insert 100 characters in Workflow Label.

 

Regards,

Pravallika.

 

 

Level 4
August 1, 2023

Hi @lakshmipravallika ,

 

If I do it, I'm getting below error,

 

 

Unable to find XPath element 'activity' in schema 'xtk:workflow'.
GEN-300014 Error while processing the template='xtk:workflow:activity' directive in the 'crm:workflow' schema.
Unable to find XPath element 'workflowState' in schema 'xtk:workflow'.
GEN-300014 Error while processing the template='xtk:workflow:workflowState' directive in the 'nms:workflow' schema.
Unable to find XPath element 'activityName' in schema 'xtk:workflow'.
GEN-300014 Error while processing the template='xtk:workflow:activityName' directive in the 'xtk:workflowEvent' schema.
Unable to find XPath element 'affinity' in schema 'xtk:workflow'.
GEN-300014 Error while processing the template='xtk:workflow:affinity' directive in the 'xtk:workflowJob' schema.
Unable to find XPath element 'activityName' in schema 'xtk:workflow'.
GEN-300014 Error while processing the template='xtk:workflow:activityName' directive in the 'xtk:workflowLog' schema.
Unable to find XPath element 'hostname' in schema 'xtk:workflow'.
GEN-300014 Error while processing the template='xtk:workflow:hostname' directive in the 'xtk:workflowTask' schema.
------

 

Please tell me how can I fix this?

LakshmiPravallika
Community Advisor
Community Advisor
August 1, 2023

Hi @sujith_02kumar ,

 

In the Screenshot of Code you have pasted, I see no changes done to the code.

Please make the changes instead of element tag liner in your code, please paste the below code and check, it will work (replace the element tag code entire line with the below)

 

 

Regards,

Pravallika

Level 4
August 12, 2023

Please can someone help me with this?

 

Thanks in advance.

 

Regards,

Sujith.