This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

DEVELOPERS FORUM - Choose a specific user in a workflow

dmonte - Thursday, August 6, 2015 4:12 AM:

Hi everyone,

My first post here helped me a lot so I have an other question for the community :).

I made an ItemType called "Study" with a workflow and a life cycle attached. The Study is put in the workflow once the "manager_user" has created it (initial life cycle state: "Created by the manager").

My problem comes just after that. I would like to give the possibility to "manager_user" to choose the "end_user" who will need to complete the study.

Is there anybody here who could help me ? :)

I really appreciate any help you can provide.

Daniel



Dave_Rollinson - Friday, August 21, 2015 5:09 AM:

Daniel

Standard Innovator allows you to set the "Managed By" and "Role" properties on the Activity Template; then when a workflow is instantiated the "Managed By" Identity can select an Identity from the "Role" Identity to set as the Assignment.

Another option, which requires customisation, is to use a Workflow Method to select an Identity (e.g. from a property on the "Study" Item) and create an "Activity Assignment" for this Identity. The Method would be a "Server Event" on the Activity and would fire when the Activity is activated; the context Item for this Method would be the Activity, so you'd need to find the controlled Item (Method "PE_DynamicWorkflowAssignments" is an example I think).



dmonte - Tuesday, September 29, 2015 9:14 AM:

Hello Dave,

First of all thank you for your answer and sorry for the time between your answer and mine :) I am trying to do as you told me with:

"Standard Innovator allows you to set the "Managed By" and "Role" properties on the Activity Template; then when a workflow is instantiated the "Managed By" Identity can select an Identity from the "Role" Identity to set as the Assignment."

The problem is that when I put the creator as "Managed by" I don't find any place in the activity windows (into the In Basket) where the creator can choose an identity. Do you know how to fix it ? Moreover I can't use a method which extract the identity from a property because I want to give the choice of user to the "creator".

Thanks,

Daniel