5.3. Defining Element Properties

Now, you need to define the element properties:

  1. Click the double-arrow ( 3897 ) in the upper right hand corner to expand the Properties tab.
  2. Click anywhere on the canvas. The Properties tab displays the properties of the Hello World process. The required properties are pre-defined; however, you can change their values if necessary.
  3. The Start Element and End Element have only optional properties. However, Task Elements need their type and then type-specific properties defined: click the Task Element and define the required properties:

    • Name: ScriptTask
    • Task Type: Script
    • Script Language: java
    • Script: System.out.println("Hello World!");
  4. Click Ok.

    You have defined a Task that will perform a script on execution. The script is defined in Java and executes the method System.out.println("Hello World!"), that means it will write Hello World! to the standard output of the server. By default, the standard output of the server is the console the server was started in.

  5. You still need to define properties of the Timer Event to make the process wait on runtime, so you can inspect its execution: click on the Timer element and define the time it will wait for execution:

    • Time Duration: 1m

    Click Ok. The process will therefore wait for 1 minute on the Timer Event after it executes the Script Task.

  6. Give the Timer Event a name using the same tab and then save your process: click Save at the top of the Business Process Editor.
  7. The Save this item prompt is displayed. Enter the Check-in comment.

    Note

    The check-in comment would be a short description of the kind of change you made and has to be entered every time an asset is saved.

  8. Click 3137 on the toolbar of the Process Designer with the process to make sure the defined process is valid. The outline of any element with one or multiple validation mistakes turns orange. For information on the validation feature, see the Red Hat JBoss BPM Suite User Guide.

Further information on Process Elements and their properties is available in the Red Hat JBoss BPM Suite User Guide.