(1) Starting a holiday // user is the actorid executionservice esrius for the fake person, OpenExecutionService (). OpenExecutionService; HashMap vs = new hashmap (); // Some parameters vs.put (constants.Request_status, string .valueof (0)); vs.put (constants.Request_return_info, "no info!"); vs.put (constants.user_name, encodetransfer.toiso (user); vs.put (constants.Request_Days, string.valueof) Rea.getdays ())); try {// Opens the fake process es.startProcessInstance (constants.work_name, vs); log.info ("[" user "]" "application holiday start! Please fake" Rea.getDays () "Day!"); Return Am.Findforward ("Main");} catch (executionException ex) {EX.PrintStackTrace (); log.error ("Please fail to start!"); Return Am.Findforward "Error");} finally {es.close ();} (2) Current execution tasks For departmental managers or bosses, find the time to handle. String actorid = (string) Req.getSession (). GetAttribute (constants.user); if (actorid.equals ("wang")) {actorid = "boss";} else if (actorid.equals ("Bigli")) {Actorid = "chief";} // Get the Execution Service ExecutionService ExecutionService = jbpmserviceFactory.getInstance (). OpenexecutionService;