Activiti-Rest java code -


public static void startprocessinstance(){  	string uri=rest_uri+"/runtime/process-instances";  	log.debug("process instance uri: "+uri);  	jsonobject my_data=new jsonobject();  	try {  		my_data.put(config.getconfig().getproperty("name1"),config.getconfig().getproperty("name2"));  		my_data.put(config.getconfig().getproperty("emailid1"),config.getconfig().getproperty("emailid2"));  		my_data.put(config.getconfig().getproperty("reason1"),config.getconfig().getproperty("reason2"));  		my_data.put("processdefinitionkey",config.getconfig().getproperty("processdefinitionkey"));  representation response=getclientresource(uri).post(my_data);

i doing activiti-rest.in documentation have not mentioned java classes activiti rest such how deploy process,how start process,how complete task etc. can provide sample codes process of activiti through activiti rest. in advance

the rest api naming convention 1-1 java api.

deploying process definition:

  • repositoryservice.createdeployment.xxx
  • post repository/deployments

start process instance:

  • runtimeservice.startprocessinstancebyxx
  • post runtime/process-instances

complete task:

  • taskservice.completetask(taskid)
  • post runtime/tasks/{taskid} (complete action in body)

Comments

Popular posts from this blog

jOOQ update returning clause with Oracle -

java - Warning equals/hashCode on @Data annotation lombok with inheritance -

java - BasicPathUsageException: Cannot join to attribute of basic type -