List states which correspond to State Groups with Java Plain API
Hello,
In my groovy/java script I get the state group doing:
def workItemClient = (IWorkItemClient)repository.getClientLibrary(IWorkItemClient.class)
IWorkflowInfo info= workItemClient.findWorkflowInfo(wi, mon);
def status = info.getStateName(wi.getState2());
println("\tWorkItem State is: " + status)
def stateGroup = info.getStateGroup(wi.getState2());
println("\tWorkItem State Group is: " + stateGroup)
The stateGroup is an integer that represents: IWorkflowInfo.CLOSED_STATES, IWorkflowInfo.IN_PROGRESS_STATES or IWorkflowInfo.OPEN_STATES
My Question is:
Is there a way to list which states are corresponded to each of them?
For example, for IWorkflowInfo.OPEN_STATES, the states that are corresponded to it are: New, Implemented, etc...
How would be the code?
Thanks a lot for the help.