cancel
Showing results for 
Search instead for 
Did you mean: 

Parsing the process definition

frauke
Champ in-the-making
Champ in-the-making
Hello everybody,

is it possible to parse the process definition before the process has been started?
We like to get some information about the tasks before starting the process.

Frauke
13 REPLIES 13

jbarrez
Star Contributor
Star Contributor
Correct. I closed it. Thanks!

rmoskal
Champ in-the-making
Champ in-the-making
I still don't see the api function from ACT-242 in 5.3. 

ReadOnlyProcessDefinition RepositoryService.getDeployedProcessDefinition(String);

I would like to introspect the structure of some of my workflows, what to do?

rmoskal
Champ in-the-making
Champ in-the-making
And a processquery from the runtime service doesn't return a ProcessInstance with the ProcessDefinition fields populated.

jbarrez
Star Contributor
Star Contributor
You will need to cast to RepositoryServiceImpl to see the method. It's not yet 100% as we would like it, hence the cast.


And a processquery from the runtime service doesn't return a ProcessInstance with the ProcessDefinition fields populated.

No, this is for performance reasons, as parsing the process definition is time-consuming and wouldnt service 80% of the typical use cases.
So you would need a second query to get the details.