Home > Back-end >  Activiti workflow is how to obtain business data??
Activiti workflow is how to obtain business data??

Time:12-02

How activiti workflow works, how did he get into the business data and then save to ACT_RU_VARIABLE table?

CodePudding user response:

Someone familiar with activiti project?

CodePudding user response:

Set the process variables

CodePudding user response:

RepositoryService: provide a series of management process deployment and process definition of the API,
2. RuntimeService: in the process runs to management and control of the process instance,
TaskService: to manage process tasks, such as task reminds, task completion and create tasks, such as
4. IdentityService: provide process roles data management API, these character data include user group, user and the relationship between them,
5. ManagementService: to provide management and maintenance of the process engine service,
6. HistoryService: the process of historical data, including the query, delete the history data,
7. FormService: form service,

CodePudding user response:

At the time of the submission process

//entity class ID, as the process of business key
String businessKey=projectInvoice1. Getid (id) of the business. The toString ();

//used to set the start process ID, the engine will automatically save the user ID to the activiti:
in the initiatorIdentityService. SetAuthenticatedUserId (user id);
ProcessInstance ProcessInstance=runtimeService//start a process set up the business key
StartProcessInstanceByKey (name of "process", businessKey, variables);

//put process id associated with business class
ProjectInvoice1. SetInstanceId (processInstance. GetId ());
  • Related