cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic task description

Former Member
0 Kudos

i have a custom task and its description.

I have used that task at multiple steps, depending on some conditions i want to display texts(task description).

Scenario:

Work item(created by that Task) is sent to user 1.

After deadline that same task is sent to user 2(agents determined using rule),work item from user 1 inbox , disappears(after deadline-Used process control to make it obsolete).

I want that when same task is sent to user2, It description should contain 1 or more additional lines,Like that:

Escalated from :User1,Userx,Usery.

As values of user1,userx,usery will be dynamic(user1,userx,usery-will be determined using rule), and i want to display those values in task description(only when it is sent to user 2 after deadline triggered).

I have created Command line (if conditions-if agents fetched-after creation of task at step1 is not initial) in task description to achieve so.

What i have tried:

I have created a workflow container element-(binded to task in step1 -so that it could fetch agents from step1 ) and then if that container element is not initial .Task description changes accordingly.

But task container element _RULE_RESULT (container values-check in SWIA), is not populating values in workflow container element-Agents(Same data type of _RULE_RESULT).

Please guide me.

Accepted Solutions (0)

Answers (2)

Answers (2)

MKM
Active Participant
0 Kudos

Hi abhishek,

How you got the agent into workflow container ?

facing the same issue.

Thanks in advance,

Manoj

former_member185167
Active Contributor
0 Kudos

Hello,

Is RULE_RESULT set to multiline?

Having dynamic task descriptions is not difficult. Tell us what you expect and what you are getting.

regards

Rick Bakker

Former Member
0 Kudos

Is RULE_RESULT set to multiline?

No, _RULE_RESULT is standard Task container element.Data type -BO-AAGENT.And so is my workflow container element-AGENTS(Data type -BO-AAGENT.).

Short Summary:

Step 1 -Task executed(work item created and sent to user1),

Get agents from task to workflow container(element created AGENT).

AGENT Workflow container element should filled with agents of task after step 1.

Problem is here(Workflow container element is not getting filled from _RULE_RESULT TO AGENTS)

Deadline triggered.

Step2. -Same task.->Binding of Workflow container element AGENT to Task container element(AGENTOFEARLIERSTEP).

Same task executed to sent workitem to user 2.

IN TASK Description:

IF AGENTOFEARLIERSTEP NE ''.

Escalated from.values from &AGENTOFEARLIERSTEP&

Endif.

former_member185167
Active Contributor
0 Kudos

Hello,

Does _RULE_RESULT contain the values you expect? If not, best to use your own container element.

Be careful with the syntax, it can be very temperamental. I would do:

/: IF &AGENTOFEARLIERSTEP& NE ''

...

/: ENDIF

(i.e. without periods at the end of a statement)

It should be AGENTSOFEARLIERSTEP, there can be more than one.

Again: what do you expect and what are you getting.

regards

Rick Bakker

Former Member
0 Kudos

Rick Bakker wrote:

Hello,

Does _RULE_RESULT contain the values you expect? If not, best to use your own container element.

Yes, _RULE_RESULT container the values i need.

If it would have passed those values to workflow container element AGENTS,My problem is solved.

thanks For Correcting the syntax.

I will stick to your syntax.

former_member185167
Active Contributor
0 Kudos

Hello,

Is AGENTS multiline? Did it pass nothing or just the first value?

How are you using AGENTS in your task description?

regards

Rick

Former Member
0 Kudos

AGENTS is not multiline(DATA TYPE:BO-AAGENTS.)

It is empty when seen in SWI1 or SWIA.(Seen in workflow container).

Agents  is then passed to task container element through binding to element AGENTSOFEARLIERSTEP (Second time STEP 2 after deadline).

Then task description contains command line :

Something like that:

IF &AGENTSOFEARLIERSTEP& NE ''

Escaled from **********

ENDIF

anjan_paul
Active Contributor
0 Kudos

Hi,

  Please share screenshot of your Agent chronical log and technial log.

Does the workitem is assign to any agents

Former Member
0 Kudos

Screenshot of TASK container -SWI1

Screenshot of Workflow container -SWI1

The values from _RULE_RESULT (TASK CONTAINER) should be filled to AGENTS(WORKFLOW CONTAINER).

former_member185167
Active Contributor
0 Kudos

try:

&AGENTS&  <-    &_RULE_RESULT.AGENTS&

Former Member
0 Kudos

Tried, that already.

Didn't help.

Somewhere on sdn while searching i came to know,

That rule result parameter if task will get filled after work item is executed.

Is that true?

former_member185167
Active Contributor
0 Kudos

Hello,

The binding of Step -> Workflow only occurs after the step has been executed. This is true for every container element.

Does _RULE_RESULT.AGENTS have the same datatype as AGENTS? If so, I can't think why it doesn't work.

regards

Rick