run-generic-process-for-each-affected-resource#

The run-generic-process-for-each-affected-resource step executes a generic process for each resource affected by the application process and waits for it to complete. This step is only valid in an application process.

Format#

run-generic-process-for-each-affected-resource step "foo" is
    -- name of the generic process to run for each affected resource; required
    process "generic-process-1"

    -- don't start further children after a failure; optional
    -- default is false
    fail-fast false

    -- suppress warnings generated by children; optional
    -- default is false
    ignore-child-warnings false

    -- maximum number of concurrent processes; optional
    -- default is unlimited
    max-concurrent-processes unlimited

    -- javascript precondition script that must evaluate to true for the step to execute; optional
    precondition-script
        """
        true
        """

    -- set a generic process property value; optional, repeatable
    property "generic-process-property-1" = "cpp1-value"
    property "generic-process-property-2" = "cpp1-value"
on success
    finish
end

Properties#

Field Description
Name A name for the step. Other process steps can refer to this step by this name.
Process The generic process to run.
Resource Path The resource on which to run the generic process.
Other properties After you select a generic process, the properties for that process are listed. You can set values here to pass to the process.

Example#

start is

    start A

    start B

end



run-generic-process-for-each-affected-resource step A is

    process "proc-1"

    fail-fast true

    ignore-child-warnings true

    max-concurrent-processes 10

    precondition-script "script-1"

    property "prop-1" = "prop-value-1"

    property "prop-2" = "prop-value-2"

    property "prop-3" = "prop-value-3"

on success

    finish

end



run-generic-process-for-each-affected-resource step B is

    process "proc-2"

on success

    finish

end

Parent topic: Generic process steps