How to get all available WorkflowDefinition Ids of a given project area (using OSLC EWM/RTC)
Hi All,
I want ro retrieve all available states of a workflow, which works when I Know the WorkflowDefinition id (marked fat).
https://jazz-test3.de/ccmfed/oslc/workflows/_dhfjuszdfugdfhfgdj/states/com.ibm.team.workitem.taskWorkflow
https://jazz-test3.de/ccmfed/oslc/workflows/<project area>/states/<workflow definition id>
But i don't know that id and don't find a way to get it programmatically - so Im searching for a way to find all available WorkflowDefinition Ids for a given project area.
I want to do that by using the OSLC interfaces. So could please help me to find the right OSLC url parameters to get all the Ids for a given proejct area.
Thanks & Bye
Steve
2 answers
The workflow for a project area is set in the process description. For any work item, its rtc_cm:state provides a link to the Status (http://jazz.net/xmlns/prod/jazz/rtc/cm/1.0/Status). The path before the status is return the list of states. For example, a work item might have Status:
<rtc_cm:state rdf:resource="https://jazz.net/jazz/oslc/workflows/_nREkAFnBEd6gxZub9d40hQ/states/bugzillaWorkflow/1"/>
Remove the enumeration literal at the end and you get a URL to the list of statuses in that workflow:
Comments
Thanks for answering...
Maybe it was not clearly described, but I don't wanna read the list of states.
I want to get a list of all available Workflow/workitem types (the identifiers)
- in your example:
- bugzillaWorkflow,
- com.ibm.team.workitem.featureWorkflow,
- com ibm.team.workitem.taskWorkflow,
- ...