Tips & Tricks - Processes

Size of processes elements

When working with more complicated processes, you may need to reduce the size of process elements. When new elements are created on the workspace, they are usually a different size.

The size of any process element can be copied using the "Copy size" main menu.

To do this, select the main menu "Apply size" for the target element.

The default size with which new process elements are created on the workspace can be set in the main menu "Extras / Options".

Box

One way of structuring processes is the "box" element, which you can use to visually summarize elements.

Delete element with connections

Elements can be completely removed from the process using the main menu "Delete element with connection" with the subsequent connection arrows.

Select this and all following elements

The main menu "Select this and all subsequent elements" is also helpful, with which an entire process chain from the currently selected element can be marked.

Start timer

A global timer can be started manually using the main menu "Start global timer job" - e.g. for test purposes.

Timer protocol in the Tools module

The execution plan of a timer is managed in the "Tools" module in the task planning and can be searched for there using the GUID of the timer. If you have activated the expert options for the "Processes" module, you can open the details of the timer by pressing the F4 key when it is highlighted.

Copy the GUID to the clipboard and then switch to the "Tools" module.

Open the Task scheduler and search for the timer's GUID. You can view the latest messages about the execution of the timer and access additional functions from the job's context menu.

Send email at the end of a timer job

A generic event handler can react to the completion of a timer job.

To do this, the class " de.uplanet.lucy.server.workflow.eventhandler.TimerJobCompletionWorkflowEventHandler" must be selected in the generic event handler and the GUID of the timer to be responded to must be entered. Now, an email action can be added to the Generic event handler. If you want to send different emails depending on the status of the timer job or, for example, only want to send an email in the event of an error, a corresponding check can be carried out with a Groovy condition before the email action. In Groovy, you can use the g_event.hasError() function to check whether an error has occurred. You can use the function g_event.getErrors() to read out a list of the errors that have occurred.