Tips & Tricks - Processes

Size of Process Elements

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

Using the "Copy Size" option in the main menu, you can copy the size of any process element.

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

The default size used when creating new process elements on the workspace can be set in the main menu under "Tools / Options. "

Box

One way to organize processes is to use the "Box" element, which allows you to visually group elements together.

Delete Element with Connection

Elements can be completely removed from the process—along with their associated connection arrows—using the "Delete Element with Connection" option in the main menu.

Select this and all subsequent elements

Another helpful feature is the main menu option "Select this and all subsequent elements, " which allows you to select an entire process chain starting from the currently selected element.

Start the timer

Using the "Start Global Timer Job" option in the main menu, you can manually start a global timer —for example, for testing purposes.

Timer Execution Log in the Tools Module

The execution plan for a timer is stored in the "Tools" module in Task Scheduler and can be searched for there using the timer's GUID. If you have enabled the expert options for the "Processes" module, you can open the timer's details by pressing the F4 key when it is selected.

Copy the GUID to the clipboard, and then go to the "Tools" module.

Search for the timer's GUID in the task schedule. Here, for example, you can view the latest execution reports and access additional functions via the job's context menu.

Send an email when a timer job completes

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

To do this, select the class "de.uplanet.lucy.server.workflow.eventhandler.TimerJobCompletionWorkflowEventHandler" in the generic event handler and enter the GUID of the timer you want to respond to. Now an email action can be linked to the event handler. If you want to send different emails depending on the status of the timer job—or, for example, send an email only if an error occurs—you can perform the appropriate check using a Groovy condition before the email action is executed. In Groovy, you can use the g_event.hasError() command to check whether an error has occurred. You can use the g_event.getErrors() command to retrieve a list of errors that have occurred.