Do I need to programmatically update the Process Configuration?
3 answers
I don't know how Promote work items work, but I am wondering why you want to update the work item state by updating the process configuration since the Promote Work Item precondition there is specially to control whether the promotion can happen
If I understand correctly, only work items are in the specified state that you can do the promotion, it looks to me more like a work item state check than work flow state update? If the work item meets the precondition, then you do the promotion, else just skip it?
Comments
work item state check than work flow state update--- I mean precondition check than precondition update in the process configuration.
He didn't want to update the work item state ... he wants to programatically add the appropriate Require_Work_Item_State precondition to the process configuration.
The precondition for the server side operation will take effect immediately when it is configured.
Andrew:
As far as I can tell, there is no API to programatically configure the precondition for the operation. One possible way(internal use) is:
1. Read out the process configuration specification source from the project area
2. Update the specification source with the necessary change for the Promote Work Item Operation.
3. Save the updated process configuration specification source back to the project area
4. Save Project Area
Comments
The precondition takes effect immediately when it is configured through the project area editor GUI. For context on my earlier comment, a customer I was working with wanted to update the process configuration in a follow-up action, and the change made throught the follow-up action did not appear to take effect until the RTC server was restarted. It might be that they were just not calling the right RTC API's, or it might be these calls just don't work properly in the context of a follow-up action. At the time, the advice from the process team was just "don't try to update the process configuration in a follow-up action" (:-). So we ended up using a different approach.
Comments
Ralph Schoon
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER Jul 31 '13, 12:50 a.m.I fail to understand your problem/question. What do you try to achieve or where do you have an issue? Why would you want to update the process configuration?