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

Specifying Workflow Result Manually

SOLVED
Go to solution
Highlighted
Tommy Honahan
Super Collector

Specifying Workflow Result Manually

Hi Everyone,

I want to create an object type which will set the result of an execution step based on some logic in the object type commands. Currently, I tried accomplishing this by using the ksc_set_exit_value command.

The object successfully changes the execution step result, but the execution step does not pass the result through the transition to the next step in the workflow.

For example... my object type sets the execution step result to Succeeded, and when I look at the step in the package status tab it says Succeeded as the result. But when I look at the graphical view of the package, the package line does not transition to the next step in the workflow using the Succeeded result, rather it just sits at the execution step.

If I use the override status button and set the result to Succeeded that way, the package line proceeds down the workflow as it should.

Is there another command I need after the ksc_set_exit_value command to push the package line along?

Thanks,
Tommy
2 REPLIES
Jason Nichols K
Honored Contributor
Solution

Re: Specifying Workflow Result Manually

Tommy,

Are you using the Visible version or the Hidden version of the Succeeded transition. If memory serves, it's looking for the hidden value (SUCCESS). Also, if you are planning on having non-standard results, you need to make sure they are in the validation for the execution step.

Jason
Tommy Honahan
Super Collector

Re: Specifying Workflow Result Manually

Yesssssssss. Thank you! I had to set the value to "SUCCESS" (the validation code) rather then "Succeeded" (the validation meaning).

It works now! Thanks again.
//Add this to "OnDomLoad" event