CodePudding user response:
Someone familiar with activiti project?CodePudding user response:
Set the process variablesCodePudding 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 ());