1

In diagram below third activity is a Automatic Activity in workflow. User is NT Authority. Can i change this user to previous activity user (jsha13)

enter image description here

  • 1
    May I ask why would you want to do it? It's there for a reason as System user actually performed the action – Andrey Marchuk May 8 '14 at 11:35
  • As seen in diagram above, my second activity is a manual activity and i am passing a message into this for next user. Message is seen properly in previous activity message box in second activity. Now i pass some message in third activity as third activity is a automatic activity i am passing a message through code for fourth message. My message is not flowing . I am suspecting this is a NT authority which is creating the issue. refer this for more information . – Jitender sharma May 8 '14 at 11:43
  • @user978511 : refer this for more information - [tridion.stackexchange.com/questions/5421/… – Jitender sharma May 8 '14 at 11:43
4

As I understand it, you don't really want to change the user executing all workflow activities, what you want is the workflow history to reflect that this action was caused by a different user than "System".

I've worked around this requirement in the past by:

  1. Configuring a different account for the workflow service (didn't want to use SYSTEM for this because this account is used in many other services)
  2. Configuring this different account to be a valid Impersonation account
  3. In my automatic activity code, impersonate a different user (the performer of the previous actions)
  4. Calling Finish Activity while impersonating

This will effectively change who performed the action, but does require some additional code and configuration.

|improve this answer|||||
0

In nutshell handling activities has next algorithm: if next activity assignee is workflowAgent(can be changed in tcmConfig...but by default is NT AUTHORITY) - notify workflow service, that it has to execute this activity. If somehow you'll be able to assign this activity to other user (which I doubt...at least earlier were business rules, which had ensured that automatic activity is assigned to WFAgent), Workflow Service will not able to execute automated activity...It will not get any info, that it needs execute something. Regarding to your first question(the problem itself) - need time for investigation, can't answer "on fly".

|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.