Hi everybody,
I try to create an optional activity... but I can't figure out how to make an "optional" activity.
In fact I would like this activity to appear in the task list but if the user do not open it, it does not block process achievement...
A little exemple:
When the process starts, the user has two activty to complete in parallel. There are other activities after the first activity and no other activities after the "optional" activity.
When all activities are completed after the first one, I want to be able to achieve the process instance even if the "optional" activity has not been opened...
Thanks for help
Page 1 / 1
Hi,
We had the same situation in one of our processes where the one activty was just for information to the destination users and no action would be taken on the activity's client event.
What we did was to expire the "additional" activity at some stage in the process. We've written some code in the finish button click event of the client page (aspx page) of another activity to expire the "additional" activity.
NB:
- You must know the serial number of at least one of the worklist items of the "additional" activity
- If there is more than one destination user for the activity remember to set "Create a slot for each destination" and set the succeeding rule so that the activity will finish as soon as one of the users finishes their worklist item.
What do you need to do in code?
- Connect to the K2 Server
- Open the worklist item with the relevant serial number
- Finish the Worklist Item
- Close the connection to the K2 Server
Hope this helps,
T
We had the same situation in one of our processes where the one activty was just for information to the destination users and no action would be taken on the activity's client event.
What we did was to expire the "additional" activity at some stage in the process. We've written some code in the finish button click event of the client page (aspx page) of another activity to expire the "additional" activity.
NB:
- You must know the serial number of at least one of the worklist items of the "additional" activity
- If there is more than one destination user for the activity remember to set "Create a slot for each destination" and set the succeeding rule so that the activity will finish as soon as one of the users finishes their worklist item.
What do you need to do in code?
- Connect to the K2 Server
- Open the worklist item with the relevant serial number
- Finish the Worklist Item
- Close the connection to the K2 Server
Hope this helps,
T
Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.