Hitachi

JP1 Version 12 JP1/Automatic Operation Service Template Reference


4.2.4 Repeated execution plug-in

Function

This plug-in enables repeated execution of a flow. You can execute a service with a value specified in the Input Properties (inputProperties) for each iteration of the flow. This is useful, for example, when you want to execute the same processing on different servers. The maximum number of nested levels that can be specified for a repeated execution plug-in is three.

Note that the execution methods for a flow include concurrent execution that executes flows in parallel, and sequential execution that executes the next flow when the current flow has finished executing.

Cautionary notes

Version

01.00.01

Tag

Control Flow

Return codes

Return code

Description

0

Ended normally.

1

Some of the repeated processing failed.

2

All of the repeated processing failed.

3

The total number of flows under repeated execution plug-ins in the service has exceeded the upper limit.

65

The connection with the JP1/AO server failed. For example, the JP1/AO server might have stopped while the plug-in was executing.

66

The following user is mapped to the JP1 user:

  • A user who does not belong to the Administrators group.

  • A user other than the built-in Administrator who belongs to the Administrators group, in an environment with UAC enabled.

68

There is no information about the target job execution ID.

69

An environment variable of the task-processing engine could not be acquired.

80

Task execution has stopped.

81

The plug-in was called in an invalid status.

82

The request message from the task-processing engine could not be correctly parsed.

83

The environment of the JP1/AO server is corrupted.

84

Information about the specified plug-in could not be obtained.

86

The specified property value is invalid.

127

Another error has occurred.

Property list

The following table describes the properties.

Property key

Property name

Description

Default value

I/O type

Required

inputProperties #1

Input Properties

Specify an input property value for each repetition of the flow, using no more than 1,024 characters.

You can specify a different property for each repetition. Use a comma to separate properties. Commas can only be used as delimiting characters.

The maximum number of repetitions is 99. You cannot specify 100 or more comma-separated values.

--

Input

R

outputProperties #2

Output Properties

Outputs the value of the output property for the number of repetitions. The total output is 1,024 characters or less.

At each repetition, one property value is output separated by a comma in the order specified in the inputProperties property. Use a comma as the delimiting character.

--

Output

O

outputResult

Results

The execution result of each flow is output, separated by commas.

  • true

    Output when the flow is executed successfully.

  • false

    Output when execution of the flow fails.

--

Output

O

foreachMode

Mode

Specify the execution method for the repeated flow.

  • parallel

    Repeated flows are executed in parallel.

    A maximum of 99 flows can be executed in parallel. If the maximum is exceeded, the excess flows are executed when the number of executing flows falls below the maximum. You can change the number of concurrently executable flows between 1 and 99 using the foreach.max_value key in the user-specified properties file (config_user.properties).

    Even if an error occurs, all the unexecuted flows will be executed.

  • serial

    Repeated flows are executed sequentially.

    If an error occurs, unexecuted repeated flows are not executed.

parallel

Input

R

#1

The values specified in the inputProperties property are stored in the reserved.loop.input reserved property used in repeated flows. A different value is stored in the reserved.loop.input property and the reserved.loop.index property for each iteration of the repeated flow. Because a different value is stored in the reserved.loop.input property and the reserved.loop.index reserved property for each iteration of the repeated flow, specify the property in the ?dna_reserved.loop.input?, ?dna_reserved.loop.input? format.

#2

The outputProperties property stores the value of the reserved.loop.output reserved property used in the repeated flow.

Related topics