Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dynamic Assignment of Users to Workflow

Status
Not open for further replies.

chsatish

Programmer
Jul 22, 2003
9
US
Hello,

I have a requirement where I have to dynamically add the list of approvers to a task in the workflow. For this I am trying to use the 'User Type' Attribute of the workflow Map. I am planning to use 'UpdateTaskWork' method. This accepts a 'workPackage' attribute. This is where I am stuck. I am not sure of how to add the users to this workPackage and update the task accordingly. If anybody has experiece in this area I would greatly appreciate their help. Also if you know of any Java samples related to this please point me to those.

Thanks,
Satish
 
have you considered using Roles ? Also in 9.2 there is dynamic user assignement for a given task - to an extent - this may solve your problem.
 
If your list of approvers is an existing group then you can use ReassignTask LAPI function.

If your list of approvers has to be created dynamically then some extra information about your approval process is needed.

AS
 
Hi Griffit,

I tried using roles. I have defined the roles in the Map, but could not figure out on how to assign multiple users to the Roles using LAPI. Also I am not sure about if I can route a particular task for more than one role. Also I am using version 9.2. Can you brief me little more on how to dynamically assign a user to a task. Is this function limits only one user assignment?

Samarine:
My list of approvers has to be dynamic, so there is no golbal group defined. For a brief explanation of the workflow process, its a project phase exit review process. At each phase the project manager attaches some documents to the workflow and selects the subset of users from project participent list to approve the documents. This user selection has to be dynamic.

All of your time and effort on this is greatly appreciated.

Thanks.
 
You should be using the Workflow API "ReassignTask" to set the performerid. The performerid is evaluated when the step becomes active. If the performerid is set to a group id and the group option for the step is set to one level or full expand a subworkflow will be created and each user in the group will be assigned a step in the subworkflow. Note that if you use the LAPI call after the step has become active it should be assigned to an individual user.

There are other options to set the performerid as well. These get more complex and deal with updating the database directly as well as knowing some of the complex datastructures stored within the workflow database fields.
 
I need a detailed user manual/guide on how the Workflow attribute works in Livelink. Step by step instruction would be useful and a.s.a.p. please
 
There is one in the documentation provided with Livelink that shows how Workflows can be created using Forms/Attributes, there is also a copy on the Knowledge Center (
Please provide some more information on what exactly your problem is and we will try to assist.
 
May be try this:

1) Define a multi-value attribute of type "User: field"

2) List all approvers in this attribute

3) The task should be assigned to "Assignee from Attribute:"
(use the attribute define before)

4) The task should have "Groups option" as "One level expand"


AS


 
Satish ,

Were you able to resolve this issue. I want to do the same thing, I just want to reassign the approver as you mentioned in your post. I have a very simple workflow where user initiates a workflow and then the Approver either rejects or approves it. I would like to change the approver dynamically. I did follow all the instructions mentioned by other members, I tried using the ReassignTask method but it does not work.
I hope by this time you might have resolved this issue. It will be a great help if you could guide me in resolving this issue. if you have any sample code please send it to my mailid dilipnimse@mailcity.com.

Thank you very much.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top