How to create a BPMN model without using activiti tools only from java code ?

cancel
Showing results for 
Search instead for 
Did you mean: 
Active Member

How to create a BPMN model without using activiti tools only from java code ?

Jump to solution

I'm working on a workflow project with activiti and i want to create a BPMN model from java without using activiti tools. for example i have 2 tasks in a model after some operation i want to update that model and add other tasks so i need to generate that from code but i can't figure that out any help ?

1 Solution

Accepted Solutions
Senior Member II

Re: How to create a BPMN model without using activiti tools only from java code ?

Jump to solution

Check if this is of any help: GitHub - frederikheremans/activiti-dynamic-process: Activiti dynamic process example 

This example is building a process model via Java code.

View solution in original post

4 Replies
Senior Member II

Re: How to create a BPMN model without using activiti tools only from java code ?

Jump to solution

Check if this is of any help: GitHub - frederikheremans/activiti-dynamic-process: Activiti dynamic process example 

This example is building a process model via Java code.

View solution in original post

Active Member

Re: How to create a BPMN model without using activiti tools only from java code ?

Jump to solution

Thanks

Active Member

Re: How to create a BPMN model without using activiti tools only from java code ?

Jump to solution

Hey again , is there any helpful doc where i can find how to create object such as ExclusiveGateway , EndEvent  ... using java 

Member II

Re: How to create a BPMN model without using activiti tools only from java code ?

Jump to solution

Very helpful example, 

thanks

Is there any example doc for Add TaskListener to UserTask..?

This is my code and it has run time errors

SyntaxEditor Code Snippet

UserTask userTask = new UserTask(); ActivitiListener activitiListener = new ActivitiListener();  activitiListener.setEvent( TaskListener.EVENTNAME_COMPLETE ); activitiListener.setImplementation( ImplementationType.IMPLEMENTATION_TYPE_CLASS ); activitiListener.setImplementation( "<my_package>.TestTaskListener" );  userTask.getTaskListeners().add( activitiListener );

And Error
org.activiti.engine.ActivitiException: Errors while parsing:
[Validation set: 'activiti-executable-process' | Problem: 'activiti-usertask-listener-implementation-missing'] : Element 'class' or 'expression' is mandatory on executionListener - [Extra info : processDefinitionId = my-process | processDefinitionName = my dynamic process | | id = task1 | | activityName = First task | ] ( line: 6, column: 74)

Any one familiar with this, Please help