Project and Portfolio Management Practitioners Forum
cancel
Showing results for 
Search instead for 
Did you mean: 

How to assign a new workflow to a running request

Highlighted
DirkRehmeier
Occasional Contributor

How to assign a new workflow to a running request

Assigning a new workflow to an already running request will cancel the current workflow and start with the first step of the new assigned workflow.


Does anybody know which functions have to be called to perform this from backend? We want to change the workflow for many requests.

 

Thanks for any suggestions.

 

Dirk

2 REPLIES
Utkarsh_Mishra
Honored Contributor

Re: How to assign a new workflow to a running request

I will be challenging, as every request has it own workflow instance/copy. You may get some better approach from FORUM in case anyone has done the same.

 

An alternate approach would be to COPY to request to new request type and then cancel the existing request. i.e....

 

You can use KCRT_REQUEST_UTILS.COPY_REQUEST procedure in your DB script to copy the request data into new Request type and then SUBMIT the request automatically.

 

In addition to this you also need to modify your script to handle un-common tokens... i.e. you need to seperatly map it and run the update sql.

Cheers..
Utkarsh Mishra

-- Remember to give Kudos to answers! (click the KUDOS star)
NK22
Acclaimed Contributor

Re: How to assign a new workflow to a running request

Hello Dirk,

I have a same requirement now that i need to change the workflow of a existing Project.

Can you tell me if you have already did this?

Anand

 

 

 

//Add this to "OnDomLoad" event