state identifier mismatch
I'm seeing a mismatch between the state identifiers when programmatically walking through the IWorkflowInfo objects using getCombinedWorkflowInfos from the WorkflowManager. For example, '3' vs. 's3'.
This issue appears to be "known", as it is pointed out by Patrick here:
http://jazz.net/forums/viewtopic.php?t=6976&highlight=state
Can someone tell me the background of the mismatch and what the workaround is? It looks like the string identifier of the IState objects (from getAllStateIds) do not match the string identifier that is returned from the getActionResultState method.
Thank you in advance.
Aaron
This issue appears to be "known", as it is pointed out by Patrick here:
http://jazz.net/forums/viewtopic.php?t=6976&highlight=state
Can someone tell me the background of the mismatch and what the workaround is? It looks like the string identifier of the IState objects (from getAllStateIds) do not match the string identifier that is returned from the getActionResultState method.
Thank you in advance.
Aaron
2 answers
I'm seeing a mismatch between the state identifiers when programmatically walking through the IWorkflowInfo objects using getCombinedWorkflowInfos from the WorkflowManager. For example, '3' vs. 's3'.
This issue appears to be "known", as it is pointed out by Patrick here:
http://jazz.net/forums/viewtopic.php?t=6976&highlight=state
Can someone tell me the background of the mismatch and what the workaround is? It looks like the string identifier of the IState objects (from getAllStateIds) do not match the string identifier that is returned from the getActionResultState method.
Thank you in advance.
Aaron
State ids were originally integers, and we haven't gotten rid of that entirely. We should make sure that there are no mismatches when using the API. I have created
https://jazz.net/jazz/resource/itemName/com.ibm.team.workitem.WorkItem/100874
for this.
For the time being, you could use
com.ibm.team.workitem.common.internal.workflow.WorkflowInfo.stripOffPrefix(String, 's');
I'm seeing a mismatch between the state identifiers when programmatically walking through the IWorkflowInfo objects using getCombinedWorkflowInfos from the WorkflowManager. For example, '3' vs. 's3'.
This issue appears to be "known", as it is pointed out by Patrick here:
http://jazz.net/forums/viewtopic.php?t=6976&highlight=state
Can someone tell me the background of the mismatch and what the workaround is? It looks like the string identifier of the IState objects (from getAllStateIds) do not match the string identifier that is returned from the getActionResultState method.
Thank you in advance.
Aaron
State ids were originally integers, and we haven't gotten rid of that entirely. We should make sure that there are no mismatches when using the API. I have created
https://jazz.net/jazz/resource/itemName/com.ibm.team.workitem.WorkItem/100874
for this.
For the time being, you could use
com.ibm.team.workitem.common.internal.workflow.WorkflowInfo.stripOffPrefix(String, 's');
Thanks Patrick ... can you help me to understand what else I might see in terms of mismatches? I noticed that resolutions were also '1' vs. 'r1'.
Would it be safe to say for now in my code that two states are equal in "id" if they are either an exact match *or* equal to "s"+state.getStringIdentifier()?
Thanks again for the reply.