cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Expression in task step

Former Member
0 Likes
3,412

Dear Experts,

I have a block step. In dynamic processing tab of block step i have given a multi line element with name "agents". I have set the initial value of multi line element as 3 user id. I want to send work item to all user ids specified in the multi line element. Inside block step i have placed an activity step. In task of activity step i specify agent as "expression" and its value as "&_AGENTS_LINE&". When I execute the workflow I expect the workflow to send work item to all users i have given as initial value in multiline element. Also I have made the task as general task under attributes. In swi1 when i get the task step with status ready. when i click agents button there its displaying message as "No selected agents". Kindly help me with this problem.

Regards,

Bharath

View Entire Topic
Former Member
0 Likes

I hope the User Id is concatenated with US in front in the multiline container. Please do so and then test.

Thanks

Arghadip

Former Member
0 Likes

Dear Kar,

I hope the User Id is concatenated with US in front in the multiline container. Please do so and then test.

Thanks for your reply. You are asking me to remove the US from user name or should i sent work item to user with US.

Regards,

Bharath

Former Member
0 Likes

Hi Bharath,

Go to the workflow log and see what values are populated in that container?

Arghadip meant to say that the workitem will be sent only to those users who has the prefix US in front of their user name.

For example if the agent is SAPUSER, the container should be populated with the value USSAPUSER.

Check if you have done this properly.

Regards,

Raj

Former Member
0 Likes

Dear Raj,

Thanks a lot for your reply. As you have said i prefixed US to user ids that i have given as initial value to multi line container element. Also in SWI1 i checked the container element value which has the user id values with prefix as US. But i do not know why the work item is not going to first user id specified in container element. Also when i click agents button which is present in SWI1 to find who all can process this task a pop up comes with 3 options - 1. agents 2. possible agents 3. excluded agents. when i click agents from it, message comes as "No selected agents". Kindly help me.

Regards,

Bharath

Former Member
0 Likes

Please check the correct Task whether it is General or not. I think you need to check the workflow Log and then checl Extras->Technical data to check what is the actual task that is getting executed in the agent activity step. This task can be different as there is something maintained in the Details tab of the activity step.

Thanks

Arghadip

surjith_kumar
Active Contributor
0 Likes

Hi,

Make that Task as General Task.

Goto T.code PFTC in Menu Additional Data > Agent assignment > Maintain.

There click the Radio Button General Task.

Then test the workflow.

Regards,

Surjith

Former Member
0 Likes

Dear Kar,

Thanks for your reply. As you said i checked in details tab of activity step. There in a label named "Interfaces Compatible With" the value is that of the task name that i have used. I have made task as general task. Also in technical details option in SWI1, in tree view i find that task id name is same as that of task name in workflow. Task in technical details and that in details tab of activity step are same. When i clicked Extras --> All errors i get a screen with 2 errors.

1. agent determination for step '0000000008' failed.

2. result of agent resolution does not agree with agents of task.

In task step i have given multi line container element agents as agent under "expression". Is this right? Just by giving the container element will the workflow read initial values of it (user ids) one by one (as i have given 3 user ids) and sent work item to them? How to specify the agent in task?

Regards,

Bharath

Former Member
0 Likes

I hope the agent multiline container element is having USER Id's concatenated with US in front. Test by refreshing buffer using SWU_OBUF Tcode and then Test.

Even after this if it does not work. Change task attribute to General Forwarding Not allowed and then assign the users and use those users. This will work. After this again change Task attribute to General and then Test and this will surely work.

Thanks

Arghadip