Skip to main content
1-Visitor
January 13, 2017
Question

How to create activity instructions dynamically(part of instruction is different for different user)?

  • January 13, 2017
  • 1 reply
  • 1948 views

Hello all,

I am new to windchill customization, i have requirement to create activity instruction different for different responsible users of same activity. Is there any API to create WF activity and Instructions, while workflow is running?

Thanks in advance.

1 reply

15-Moonstone
January 16, 2017

Hello,

If you have 1 activity and you need to change the instructions, it's easy as you can ue variables to define the instructions.

Create a String variable, like "dynInstructions", and define it's content in the start transition.

Then you can use the notation {dynInstructions} in the activity to display the content.

1-Visitor
January 16, 2017

Hello Olivier,

I am having one activity and one role in that activity.

Thing is, all participants in that role will get instruction which are bit different (e.g. role is having 5 user...they will get tasks with slightly different instruction)

Hope i am able to explain...

Thanks in advance...

15-Moonstone
January 16, 2017

Ok, I understand.

I'm not sure that it' possible with only one Activity.

In fact, when you have 5 participants to 1 activity, you have 1 WfAssignedActivity and 5 WorkItem.

The issue is that the instructions field is on WfAssignedActivity, and is shared by the 5 users.

Maybe the Ad Hoc activties is the way to go.