Petals ANT Tasks SNAPSHOT

compared with
Key
This line was removed.
This word was removed. This word was added.
This line was added.

Changes (7)

View Page History
{section}

h1. General
h1. Petals ESB Ant tasks

h2. General

h23. Error Suppression
All Petals ESB Ant tasks include an optional attribute, “failOnError”, which defaults to true. If this attribute’s
value is false, the task will never fail even if an error occurs during the Ant task execution.

{anchor:xmlOutput}
h23. Attribute {{xmlOutput}}

If the {{xmlOutput}} attribute is specified, the task must produce an XML document conforming to the following XML schema:
** *optional extension elements*. This area allows the implementation to provide extra, implementation-specific component information.

h1. Petals ESB Ant tasks

h2. Task {{jbi-install-component}}

descriptor.
** *extension elements*. Optional, implementation-specific information about the service unit.

h1. Ant tasks relative to MONIT traces

h2. Task {{petals-monit-read-logfiles}}

This task reads your log files containing MONIT traces. MONIT traces are loaded in an internal object through a reference.

|| Attribute || Description || Default ||Required ? ||
| dir | The root directory of MONIT log files to load. | - | Yes |
| id | Reference name of the internal object associated to MONIT traces loaded. | - | Yes |

h2. Task {{petals-extract-flow-step-info}}

This task extracts informations as property from previously loaded MONIT traces. This task is used in association with the task '{{petals-monit-read-logfiles}}' to load MONIT traces. Before to extract information from a flow step, it must be selected using search criteria provided as nested elements.

|| Attribute || Description || Default ||Required ? ||
| refid | Reference name of the internal object associated to MONIT traces loaded. | - | Yes |
| row | Index of the wanted flow step in all flow steps matching criterias | - | Yes, if criteria return more than one flow step |

h3. Nested elements

h4. Search criteria: {{flowStepCriteria}}

A search criteria operates as a filter on properties of a flow step. Flow steps for which a property with the given name '{{name}}` has the value given by '{{value}}' are selected.

h4. Flow step information extracted: {{flowStepInfo}}

The property given by its name '{{name}}' is retrieve from the flow step and put into the property with the given name '{{property}}.

h3. Example

{code}
<petals-monit-read-logfiles id="flows" dir="${petals.home}/logs/flow-monitoring" />
<petals-extract-flow-step-info refid="flows">
<flowStepCriteria name="traceCode" value="provideFlowStepBegin" />
<flowStepCriteria name="flowStepInterfaceName" value="{http://petals.ow2.org/samples/se-bpmn/vacationService}vacation" />
<flowStepCriteria name="flowStepOperationName" value="{http://petals.ow2.org/samples/se-bpmn/vacationService}new" />
<flowStepInfo attribute="flowInstanceId" property="initial-flow-instance-id" />
<flowStepInfo attribute="flowStepId" property="initial-flow-step-id" />
</petals-extract-flow-step-info>
<petals-extract-flow-step-info refid="flows">
<flowStepCriteria name="traceCode" value="consumeFlowStepBegin" />
<flowStepCriteria name="correlatedFlowInstanceId" value="${initial-flow-instance-id}" />
<flowStepCriteria name="correlatedFlowStepId" value="${initial-flow-step-id}" />
<flowStepCriteria name="processDefinition" value="vacationRequest" />
<flowStepInfo attribute="flowInstanceId" property="process-instance-flow-instance-id" />
</petals-extract-flow-step-info>
<petals-extract-flow-step-info refid="flows" row="0">
<flowStepCriteria name="traceCode" value="provideFlowStepBegin" />
<flowStepCriteria name="flowStepInterfaceName" value="{http://petals.ow2.org/samples/se-bpmn/vacationService}vacation" />
<flowStepCriteria name="flowStepOperationName" value="{http://petals.ow2.org/samples/se-bpmn/vacationService}validate" />
<flowStepInfo attribute="flowInstanceId" property="validation-flow-instance-id" />
<flowStepInfo attribute="flowStepId" property="validation-flow-step-id" />
</petals-extract-flow-step-info>
{code}