Workflow Course: Exercise 4

From OpenKM Documentation
(Redirected from Workflow Course: Exercice 4)
Jump to: navigation, search

Step 1 - Try all form elements

Take a look at all workflow available elements.

  • Create simply workflow with a start task, task node and end node like image:

Wf forms.png

  • Create a forms.xml file with all form elements definitions, create a task and assign to task node.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE workflow-forms PUBLIC "-//OpenKM//DTD Workflow Forms 2.1//EN"
  <workflow-form task="Sample">
    <input name="input" label="Input"/>
    <input name="date" label="Date" type="date"/>
    <input name="folder" label="Folder" type="folder"></input>
    <select name="options" label="Options">
      <option label="One" value="one"/>
      <option label="Two" value="two"/>
      <option label="Three" value="three"/>
    <checkbox name="check" label="Check"/>
    <textarea name="textarea" label="TextArea"/>
    <separator name="separator" label="Separator"/>
    <text name="text" label="This is a &lt;font style='color: red'&gt;sample&lt;/font&gt; text"/>
    <button name="submit" label="Submit" />
  • Assign tak node the actor called okmAdmin.
  • Register and test workflow with okmAdmin user.