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

how much overhead is there for a findWorkflowInfo() call?

I'm working on a java-based OperationAdvisor for the workItemSaveAction. I'm looking to see if the newState is in the IN_PROGRESS state group in the work item's workflow. I'm using this code:
IWorkItemCommon workItemCommon = getService(IWorkItemCommon.class);
IWorkflowInfo workflowInfo= workItemCommon.findWorkflowInfo(workItem, null);

//we only need to check for IN PROGRESS state groups. Open and Closed state groups are okay. if (workflowInfo.stateGroupContains(IWorkflowInfo.IN_PROGRESS_STATES, newStateId)) {
 ...do stuff
}

I'm wondering how much overhead is introduced in that findWorkflowInfo() call and the workflowInfo.stateGroupContain() method?  My workflows do not change *that* much so I could have a static list of the In Progress states for each work item and just look them up directly in the code.  This is on a save, so I don't want to introduce too much delay and processing purely on a Save.

Susan

0 votes


Be the first one to answer this question!

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,954

Question asked: Mar 14 '14, 4:38 a.m.

Question was seen: 3,713 times

Last updated: Mar 14 '14, 4:38 a.m.

Confirmation Cancel Confirm