Page 1 of 1

Modify Workflow Upload Form Element with Java

PostPosted:Tue Apr 24, 2012 8:52 pm
by cwest
Is there a way to instantiate the documentName of an upload form element using Java code within a workflow process? In would basically like to make the following element have the documentName default to the process instance ID:
Code: Select all
<upload label="A File" name="myFile" data="myFile" folderPath="/okm:root/workflow/files/by/proccess_instance" type="create"/>

Re: Modify Workflow Upload Form Element with Java

PostPosted:Fri Apr 27, 2012 7:20 am
by pavila
I don't understand what you need. Can you explain it with an example?

Re: Modify Workflow Upload Form Element with Java

PostPosted:Sun Apr 29, 2012 10:00 am
by jllort
Explain the logic you should think will be implemented, because seems you want to create a new document from button ? we do not understanding which is exactly your idea.

Re: Modify Workflow Upload Form Element with Java

PostPosted:Thu May 10, 2012 7:00 pm
by cwest
I would like to have it so that in one task of the workflow, the user enters the employee ID. After that submitting the form, on the next task I would like the form to have an upload element that has a path to /okm:root/[employee_id]

Re: Modify Workflow Upload Form Element with Java

PostPosted:Mon May 14, 2012 5:51 am
by jllort
Take a look at http://www.openkm.com/dtd/workflow-forms-2.1.dtd the form element you should use is upload

Re: Modify Workflow Upload Form Element with Java

PostPosted:Tue May 29, 2012 2:11 pm
by cwest
I guess the best question is, is there a new version of the jar file to be included in the jBPM processes? I am currently using "OpenKM-utilities-5.0.jar". Is there a OpenKM-utilities-5.1.jar or something similar? Is there a new one that includes the "com.openkm.bean.form.Upload" class?

Re: Modify Workflow Upload Form Element with Java

PostPosted:Fri Jun 01, 2012 5:32 pm
by jllort
If you checkout application and build, you will generate a OpenKM-classes.jar file I suggest take a look here for how doing it http://wiki.openkm.com/index.php/Developer_Guide