Page 2 of 2

Re: how can I use workflow?

PostPosted:Wed Mar 31, 2010 10:22 am
by pavila
We have improved the Workflow Guide, please take a look and post your impressions.

Re: how can I use workflow?

PostPosted:Wed Mar 31, 2010 2:14 pm
by robschneider
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!

Re: how can I use workflow?

PostPosted:Wed May 19, 2010 7:48 am
by si_sol
I have same problem. I'm sure that the file indeed have a processdefinition.xml but can not be uploded successfully.
Here is the error :
Code: Select all
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

Re: how can I use workflow?

PostPosted:Wed May 19, 2010 8:07 pm
by jllort
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 )

Re: how can I use workflow?

PostPosted:Thu May 20, 2010 2:17 am
by si_sol
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 :D
Just curious, why ?. In my previous deployment, the .par file look similar to (actually more complete than) the one that's been successfully deployed.

First deployment :
- Create the process project, write diagram, etc
- Export the project as Java .jar and then rename it to .par file
- Deploy
- Error

Second deployment
- Create the process project, write diagram, etc
- Save process archive locally
- Deploy
- Success

I have observed both files (open it with ZIP utility) and found that the content is similar.
The only different is that the exported .jar file (later renamed to .par) also contain a lot of configuration file (which is not exist in the successfully deployed file)

Re: how can I use workflow?

PostPosted:Sat May 22, 2010 4:32 am
by si_sol
One more question. How to make a workflow that's "OpenKM aware" ?
I mean, it will be aware on user who started it (or users who is assigned to), and also aware on the file/files which is assigned to

Re: how can I use workflow?

PostPosted:Sat May 22, 2010 7:16 am
by jllort
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 )

Re: how can I use workflow?

PostPosted:Sun May 23, 2010 5:16 am
by si_sol
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 ?

I've tried the online demo (login using user03) and the only available workflow is : simple & advance (two workflow samples in the wiki). To my knowledge (based on the openkm wiki documentation, wiki.openkm.com), thats just a generic workflow, no variable for user who start it (assignor), no variable for user it assigned to (assignee), and no variable for the file / files that may be related to those assignment.

Re: how can I use workflow?

PostPosted:Tue Mar 04, 2014 4:17 pm
by reynaldo
HOla Buen dia stoy creando un workflow, al crear me crea una carpeta para un expediente EXP-001, cada usuario asignado, tendra la posibilidad de subir un archivo, y ser guardado en el expediente, puedo obtener la instancia del folder expediente, pero aun no he podido subir el archivo por el form.

he probado este codigo:
Code: Select all
<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);

Con codigo java, quiero modificar el folderPath, del upload, para que me suba en el expediente creado.. alguna solucion..

Re: how can I use workflow?

PostPosted:Fri Mar 21, 2014 8:03 pm
by pavila
Sería mejor disponer de todo el proyecto para poder ejecutarlo en local y ver que está sucediendo. Me refiero al proyecto de Eclipse con todas las clases, xml, etc.