It's all about the answers!

Ask a question

state identifier mismatch


Aaron LaBella (5143) | asked Dec 01 '09, 7:44 p.m.
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

2 answers



permanent link
Patrick Streule (4.9k21) | answered Dec 03 '09, 5:32 a.m.
JAZZ DEVELOPER
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');

permanent link
Aaron LaBella (5143) | answered Dec 03 '09, 6:08 p.m.
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.

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.