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

User decision step agent issue

former_member586438
Participant
0 Likes
1,188

Hi All

In my WF I get a user profile back from a method that check a ZTABLE for the correct user to receive mail and a user decision work item .

The mail step is working correctly and sending mail to the user (as per the parameter returned from the method)

The problem is that user decision step does not sent a workitem to the correct user .

Any ideas on what the problem might be ?

In the email step I bind to &ADDRESSSTRINGS&.Not sure what the correct binding is for the user decision step?

Many thks

Gerhard

View Entire Topic
Former Member
0 Likes

Hello,

Look in the definition of the user decision step, there you define which agent receives the workitem.

How is it defined? Who is it going to now? Look in the log (SWI1).

Most common problem is missing out the 'US' in front of a username. That and not setting the task to General Task.

regards

Rick Bakker

hanabi technology

former_member586438
Participant
0 Likes

Hi Rick

Agent in the step is set as 'Expression' and then the container element that was used as the parameter from the method.

The step is set as 'General task'

The log displays 'no agent defined'

And the part about the missing 'US' ? Is this only done in a user dec step?

Former Member
0 Likes

Hello,

What's the value in the container element?

A username almost always needs to be accompanied by a US. Try it.

regards

Rick Bakker

hanabi technology

Former Member
0 Likes

Expression uses agent values like ddic WFSYST-AGENT

This value is a concatenated value 14 characters in length

Where te first 2 characters are the object type, US, P, S, O etc.

And the other 12 the object id, so your username or the organizational object id etc.

Kind regards, Rob Dielemans

former_member586438
Participant
0 Likes

That exact same container element is working in the email step...?

Former Member
0 Likes

What is the value? Does it contain a US?

Former Member
0 Likes

Type G or U (for the mail step that is)

former_member586438
Participant
0 Likes

debugging quickly to get value

Former Member
0 Likes

Debugging??

Why aren't you using the workflow log?

Kind regards, Rob Dielemans

former_member586438
Participant
0 Likes

Rob

Would you mind telling me how to find the value in the log

That will in future save me a lot of time

Many thks

Former Member
0 Likes

Click workflow log (use any of the log transactions, swi1, swi2_freq swi6 etc)

click list with technical details, shift+F9

find the step, click on it and tick the tab container.

But if you could just answer my previous question about how you are sending the mail, because if you directly use email address then it is of course impossible to use that as agent assignment for the user decision.

A user decision is ultimately sent to a user id

Kind regards, Rob Dielemans

former_member586438
Participant
0 Likes

Rob

In the email step i'm also user an expression and the parameter with the user profile in

Thanks for assistance with the log ..Will help me a lot

When I check the container in the log the container element is not there (probably to do with the binding as per my earlier question)

Former Member
0 Likes

Hi Gerhard,

you can also test first with a literal.

So you use the data you are expecting explcitly int he workflow step (e.g. USMYUSER)

If this works, then you know that the problem is that somehow your container doesnt have the data and then you can focus on that part to solve your problem.

Kind regards, Rob Dielemans