1. First copy Shar file to the library of the project (some files may conflict, such as JGRAPH in our project, but the version is relatively low, the flowchart is not coming). 2. Place Shark's CONF files in the Conf folder under the Webroot directory, and the logs folder, the Repository folder. 3. To view the flowchart, you need to configure the servlet that generates the flowchart. 4. To view the flowchart, jgraph.jar must use the version that comes with Shark. (I have encountered this problem, there is a jgraph.jar in the original project, how does the flow chart do not come) 5, you can store the ID of the work order with the "workflow related data set". Workflow datasets are used to exchange data between process activities, which is variable, and attributes only exist in each activity. The next activity is not accessible. public static void variableSet (SharkConnection sConn, String activityId, String vName, String vValue) throws NotConnected, BaseException, UpdateNotAllowed, InvalidData {WfAssignment a = getAssignment (sConn, activityId); if throw new BaseException ((isMine (sConn, a)!) "I don't = new hashmap (); object c = a.activity (); process_context (). Get (vName); if (c instanceof long) {c = new long (C INSTANCEOF Long) {c = new long vValue);} else if (c = boolean.valueof (vvalue);} else if (c @ Instanceof double) {c = double.valueof (vValue);} else {c = vvalue; }_m.put (vname, c); a.activity (). set_result (_m);} 6, using the "Workflow Extended Properties" to record the URL of the web page, the method of reading the extended attribute is as follows: Public Static String Extttribute (SharkConnection Sconn, String activatiid, string extname) throw S BaseException, Notconnected {Wfassignment A = GetAssignment (Sconn, ActivatiD); if (! ismine (SCONN, A)) Throw new baseexception ("i don't @ Activity" actiVatiD);
String procId = a.activity () container () key ();.. Return Shark .getInstance () .getAdminInterface () .getAdminMisc () .getActivitiesExtendedAttributeValue (procId, activatyId, extName);} 7, can be processed by the tool agent The function of changing the form of the form is shown in the process. 8, how to get the extension attribute of the process. getProcessDefinitionExtendedAttributeValue, based on the process's extension attribute (URL of the new work order), new work order records. 9, how to get a list of processes that can be started. public static String [] processesToStart () {ExecutionAdministration ea = null; try {ea = Shark .getInstance () .getAdminInterface () .getExecutionAdministration (); ea.connect (userName, pwd, engineName, null); WfProcessMgr [] a = Ea .get_Iterator_processmgr () .GET_NEXT_N_SEQUENCE (0); string [] ret = new string [a.Length]; for (int i = 0; i How to terminate a workflow that is flowing. Jawe.jar sometimes can't find resource, and then I can play the resource to jar, sometimes it will appear, sometimes it is normal. I do not know why.