• First workflow

  • We tried to make OpenKM as intuitive as possible, but an advice is always welcome.
We tried to make OpenKM as intuitive as possible, but an advice is always welcome.
Forum rules: Please, before asking something see the documentation wiki or use the search feature of the forum. And remember we don't have a crystal ball or mental readers, so if you post about an issue tell us which OpenKM are you using and also the browser and operating system version. For more info read How to Report Bugs Effectively.
 #7892  by mdragoi.uye
 
Hi

I try to use OpenKM 5.0 (first configuration, learn to use, tested) first steps. I read documentation about workflow (http://wiki.openkm.com/index.php/Workflow_Guide) and base on video from (http://wiki.openkm.com/index.php/Overview -> http://docs.jboss.com/jbpm/v3/demos/mov ... erview.htm) i create a first workflow.

Unfortunately for me is not working :(. It a simple workflow the scope is one person make a holliday request to Dorin, Dorin can request some extra information (and in this case need to return to user which start the workflow and this user have to add new information) and after can approve or disapprove the request.

On OpenKM I create workflow but from ordinar user (say Petre) it not request first fields and also Dorin can make action on workflow. I put here the code from workflow please can somebody to explain what I do wrong where i make mistakes.

Thanks, please help me to create a firs workflow
Petre

I attach the ".par" file - I need to tell that I don't know how to used

I show the code here:
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<process-definition  xmlns="urn:jbpm.org:jpdl-3.2"  name="holiday-request">
	<start-state name="enter request">
		<task swimlane="initiator" name="request entry">
			<controller>
				<variable access="read,write,required" name="start date" mapped-name=""></variable>
				<variable access="read,write,required" name="duration"></variable>
			</controller>
		</task>
		<transition to="evaluate request"></transition>
	</start-state>

	<task-node name="evaluate request">
		<task name="request evaluation">
			<assignment actor-id="dorin"></assignment>
			<controller>
				<variable access="read" name="start date"></variable>
				<variable access="read" name="duration"></variable>
				<variable access="read" name="info"></variable>
				<variable access="read,write" name="decision"></variable>
			</controller>
		</task>
		<transition to="give additional information" name="more info needed"></transition>
		<transition to="end" name="approve/disapprove"></transition>
	</task-node>

	<task-node name="give additional information">
		<task name="additional info entry" swimlane="initiator">
			<controller>
				<variable access="read" name="start date"></variable>
				<variable access="read" name="duration"></variable>
				<variable access="read,write" name="info"></variable>
			</controller>
		</task>
		<transition to="evaluate request"></transition>
	</task-node>

	<end-state name="end"></end-state>
</process-definition>
 #7916  by jllort
 
First task must be like this:
Code: Select all
<start-state name="start">
    and something here
</start-state>
and into form.xml might be something like this:
Code: Select all
<workflow-form task="run_config">
    <input label="name" type="text" name="number" /> // something more here, the values demanded
</workflow-form>
That will demand some information before workflow starting
 #7928  by mdragoi.uye
 
I make the change. The start form appears but after pressed "start" button - nothing happen.
 #7937  by jllort
 
Well after pressing button, is executed some transaction that's assigned to some user, you must connect to that user, and go to dashboard / workflow.

You can take a look at administration, there you can see started workflow status, it'll give some information about each workflow status.
 #14108  by tomsilby
 
I have tried the form snippet below and it does prompt the user to type the information but the Start button will not respond. That is, the dialog box will not disappear until the user presses Close button. Can you help?
Code: Select all
<workflow-form task="run_config">
  	<input label="Quantity" name="quantity" type="text"/>
  </workflow-form>
workflowexample.tiff
workflowexample.tiff (10.81 KiB) Viewed 4586 times
 #14125  by tomsilby
 
Here is a little more information. I am running version 5.0.3 on Linux Red Hat. I experience the problem on the latest versions of Chrome, Firefox, or Internet Explorer. The modal box pops up and prompts me for the information, but when I click Start, the workflow does not start and the popup box does not disappear. Thank you for any help
tomsilby wrote: I have tried the form snippet below and it does prompt the user to type the information but the Start button will not respond. That is, the dialog box will not disappear until the user presses Close button. Can you help?

<workflow-form task="run_config">
<input label="Quantity" name="quantity" type="text"/>
</workflow-form>
 #14145  by jllort
 
Go to menu tools and selecte show debug console. Then execute workflow, appearing some error '
 #14161  by tomsilby
 
jllort wrote:Go to menu tools and selecte show debug console. Then execute workflow, appearing some error '
Thanks. I did get an error. I'm not sure what it means.
dbg1.tiff
dbg1.tiff (86.27 KiB) Viewed 4562 times
dbg2.tiff
dbg2.tiff (63.39 KiB) Viewed 4562 times
 #14177  by jllort
 
You've got after executing workflow, no ?
 #14178  by tomsilby
 
jllort wrote:You've got after executing workflow, no ?
Yes. These are the messages I got after I executed the workflow.
 #14241  by jllort
 
Seems there's a problem starting workflow with initial variable, it'll be needed to debug source code to understanding what's exactly happening. Which OpenKM version are you using ?
 #14284  by pavila
 
Please, post screenshots in JPG or PNG format in order to generate thumbnails. TIFF is not supported.

And try to reproduce the error in a more recent version of OpenKM.

About Us

OpenKM is part of the management software. A management software is a program that facilitates the accomplishment of administrative tasks. OpenKM is a document management system that allows you to manage business content and workflow in a more efficient way. Document managers guarantee data protection by establishing information security for business content.