Get processDefinition tasks , start event, end event using Java, without creating a process instance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-29-2016 05:48 AM
My requirement is to get the details about deployed processDefinition, like Tasks in it, its StartEvent, EndEvent.
But I want to have these without creating a process instance.
Is there a way to achieve this?
I have been looking into activiti user guide as well as javadocs, but couldn't find a way.
Any help will be appreciated. Thanks.
- Labels:
-
Archive
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-29-2016 07:27 AM
have a look on the following jUnit test in the activiti source:
org.activiti.engine.test.bpmn.event.end.TerminateEndEventTest#testParseTerminateEndEventDefinitionWithExtensions
Regards
Martin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-01-2016 03:17 AM
I also want to know if there is some way to update a processDefinition after creating it once.
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-01-2016 03:33 AM
I do not know about such a possibility in activiti5 (it could be supported in the activiti6).
Regards
Martin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-01-2016 05:15 AM
I have one more question:
Is there a way to create a process definition without specifying configuration in an xml file, instead specifying it programatically?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-01-2016 07:07 AM
You can deploy process definition with
org.activiti.engine.RepositoryService#createDeployment
and deploy the deployment afterwards.Regards
Martin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-01-2016 07:18 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-01-2016 04:22 PM
The alternative is creating it in java (see the BpmnModel approach in the class that Martin mentions above).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-02-2016 07:07 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-04-2016 03:27 AM
