Re: how can I use workflow?
PostPosted:Wed Mar 31, 2010 10:22 am
We have improved the Workflow Guide, please take a look and post your impressions.
Because information matters
https://forum.openkm.com/
pavila wrote:We have improved the Workflow Guide, please take a look and post your impressions.Oh, great! I will definitely take a look, and post after giving it some testing. Thanks!
14:18:31,856 ERROR [OKMWorkflowUploadServletAdmin] org.jbpm.jpdl.JpdlException: [[ERROR] no processdefinition.xml inside process archive]
es.git.openkm.core.RepositoryException: org.jbpm.jpdl.JpdlException: [[ERROR] no processdefinition.xml inside process archive]
at es.git.openkm.module.direct.DirectWorkflowModule.registerProcessDefinition(DirectWorkflowModule.java:89)
at es.git.openkm.api.OKMWorkflow.registerProcessDefinition(OKMWorkflow.java:58)
at es.git.openkm.backend.server.OKMWorkflowUploadServletAdmin.doPost(OKMWorkflowUploadServletAdmin.java:75)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
at java.lang.Thread.run(Thread.java:637)
Caused by: org.jbpm.jpdl.JpdlException: [[ERROR] no processdefinition.xml inside process archive]
at org.jbpm.jpdl.par.JpdlArchiveParser.readFromArchive(JpdlArchiveParser.java:43)
at org.jbpm.jpdl.par.ProcessArchive.parseProcessDefinition(ProcessArchive.java:81)
at org.jbpm.graph.def.ProcessDefinition.parseParZipInputStream(ProcessDefinition.java:197)
at es.git.openkm.module.direct.DirectWorkflowModule.registerProcessDefinition(DirectWorkflowModule.java:74)
... 23 more
jllort wrote:First Read it: http://wiki.openkm.com/index.php/Eclipse_plugin:_Usage ( In this page talks about deployment, there's explained how to create .par file )Finally solved my deployment problem
jllort wrote:In bottom icons ... user has icon that indicates has pending workflows ( clicking there goes to Dashboard and there's has information about pending workflows ) ... if you want to visualizate information about who iniates the process etc... must be there the place to doing it. Version 4.1 has some limits in UI ( low widgets to be displayed ) in 5.0 it'll be a more complete UI design available like checkbox, text fields, etc... you can visualizate more complete forms and information. Now if I'm right are displayed variables ( could try assign this information to a variable )I see that, but that's not what I meant. What I meant is "How to make a bussiness process chart / workflow chart that can be assingned to other user ?". (such as : asking other users for approval, asking other user to distribute the selected document to related departments / divisions). Should I just add swimline to the chart and use it in the workflow ?
<upload name="upload1" label="Subir archivo" folderPath="/okm:root/archivos" data="data_upload1">
</upload>
-----------------------------------------
String uuid = (String) context.getContextInstance().getVariable("uuid");
String token = context.getToken().toString();
String folderPath = OKMRepository.getInstance().getNodePath(token, uuid);
context.getContextInstance().setVariable("document-path", folderPath);
Upload upload = new Upload();
upload.setName("upload1");
upload.setLabel("Subir archivo");
upload.setData("data_upload1");
upload.setFolderPath(folderPath);
upload.setType("create");
context.getContextInstance().setVariable("file_subido", upload);
//String mivar = (String) context.getContextInstance().getVariable("file_subido");
System.out.println("uuid: "+uuid);
System.out.println("token:"+token);