Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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

0 votes



2 answers

Permanent link
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');

0 votes


Permanent link
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.

0 votes

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,922

Question asked: Dec 01 '09, 7:44 p.m.

Question was seen: 4,764 times

Last updated: Dec 01 '09, 7:44 p.m.

Confirmation Cancel Confirm