Community Tip - New to the community? Learn how to post a question and get help from PTC and industry experts! X
Hi Community - hoping you can help with this.
I am tying to use one CN workflow for both numeric version items that result in Pre-Released state, and alpha versions that result in Released for Production state. I would like that all items in the Affected data section of the change task all (numeric and alpha) result in being set to Superseded.
com.(name).workflow.WorkflowHelper.setChangeablesBeforeState((wt.change2.WTChangeOrder2)primaryBusinessObject,wt.lifecycle.State.toState("SUPERSEDED"));
Is that all that needs to be done on the helper to set the Affected Data (aka primaryBusinessObject)?
Resulting Items. These I need to result in states based on alpha/numeric version.
Wondering if I would need to have the resulting items be at different named states so "change" in the Lifecycle can accommodate resulting in different state:
If numeric, then Under Review: Change = Pre-Released
If alpha, then Implementation: Change = Released for Production
Is there any other solution that is more Out Of Box?