Java Action Call

Last modified: January 16, 2024

1 Introduction

The Java action call activity can be used to call a Java action. Arguments can be passed to the action and the result can be stored.

2 Properties

There are two sets of properties for this activity, those in the dialog box on the left, and those in the properties pane on the right:

Java Action Call Properties

The Java action call properties pane consists of the following sections:

3 Action Section

The Action section of the properties pane shows the action associated with this activity.

You can open a dialog box to configure this action by clicking the ellipsis () next to the action.

You can also open the dialog box by double-clicking the activity, or right-clicking the activity and selecting Properties.

3.1 Java Action

The Java action that is called by this activity.

3.2 Arguments

Click Edit next to the parameter to fill in the arguments.

An argument is the input data that you are passing to the Java action. For each Java action parameter, you must supply an argument of the same type.

The values of the arguments are defined using expressions:

argument

3.3 Return Type

This read-only property indicates whether you will retrieve a variable, object or list. The return type is defined by the Java action.

3.4 Use Return Value

If User return value is set to Yes you will be asked to give the return value a name.

3.5 Variable Name, Object Name, or List Name

The result of the Java action will be given this name. The label indicates whether the result is a variable, object, or list. If it is an object or list, the Return type will indicate the entity which is being returned.

3.6 Task Queue

If you want a microflow to call a Java action to run in the background using a task queue, then you need to do the following:

  1. Check Execute this Java action in a Task Queue.
  2. Identify which task queue it should run in in Select Task Queue.
  3. (optionally) Select an automatic retry strategy.

For more information about task queues, see Task Queue.

4 Common Section

For more information on properties in this section, see Common Properties.