Petals Ant Tasks

Create an Ant task for assertions about MONIT traces

Details

  • Description:
    Hide

    Create an Ant task for assertions about MONIT traces:

    <petals-monit-read-logfiles id="flows" dir="${petals.home}/logs/flow-monitoring" />
    <petals-assert-flow-instance refid="flows" flowInstanceId="${process-instance-flow-instance-id}">
       <assertFlowStep flowStepIdx="0">
          <attributeEquals name="traceCode" value="consumeFlowStepBegin" />
          <attributeEquals name="correlatedFlowInstanceId" value="${initial-flow-instance-id}" />
          <attributeEquals name="correlatedFlowStepId" value="${initial-flow-step-id}" />
          <attributeEquals name="processDefinition" value="vacationRequest" />
          <attributeSet name="processInstanceId" />
          <flowStepInfo attribute="flowStepId" property="flowStep.0.id" />
       </assertFlowStep>
       <assertFlowStep flowStepIdx="1">
          <attributeEquals name="traceCode" value="provideFlowStepBegin" />
          <attributeEquals name="flowStepInterfaceName" value="{http://petals.ow2.org/samples/se-bpmn/notifyVacationService}notifyVacation" />
          <attributeEquals name="flowStepServiceName" value="{http://petals.ow2.org/samples/se-bpmn/notifyVacationService}notifyVacationService" />
          <attributeEquals name="flowStepOperationName" value="{http://petals.ow2.org/samples/se-bpmn/notifyVacationService}newVacationRequest" />
          <attributeSet name="flowStepEndpointName" />
          <attributeEquals name="flowPreviousStepId" value="${flowStep.0.id}" />
          <flowStepInfo attribute="flowStepId" property="flowStep.1.id" />
       </assertFlowStep>
    </petals-assert-flow-instance>
    Show
    Create an Ant task for assertions about MONIT traces:
    <petals-monit-read-logfiles id="flows" dir="${petals.home}/logs/flow-monitoring" />
    <petals-assert-flow-instance refid="flows" flowInstanceId="${process-instance-flow-instance-id}">
       <assertFlowStep flowStepIdx="0">
          <attributeEquals name="traceCode" value="consumeFlowStepBegin" />
          <attributeEquals name="correlatedFlowInstanceId" value="${initial-flow-instance-id}" />
          <attributeEquals name="correlatedFlowStepId" value="${initial-flow-step-id}" />
          <attributeEquals name="processDefinition" value="vacationRequest" />
          <attributeSet name="processInstanceId" />
          <flowStepInfo attribute="flowStepId" property="flowStep.0.id" />
       </assertFlowStep>
       <assertFlowStep flowStepIdx="1">
          <attributeEquals name="traceCode" value="provideFlowStepBegin" />
          <attributeEquals name="flowStepInterfaceName" value="{http://petals.ow2.org/samples/se-bpmn/notifyVacationService}notifyVacation" />
          <attributeEquals name="flowStepServiceName" value="{http://petals.ow2.org/samples/se-bpmn/notifyVacationService}notifyVacationService" />
          <attributeEquals name="flowStepOperationName" value="{http://petals.ow2.org/samples/se-bpmn/notifyVacationService}newVacationRequest" />
          <attributeSet name="flowStepEndpointName" />
          <attributeEquals name="flowPreviousStepId" value="${flowStep.0.id}" />
          <flowStepInfo attribute="flowStepId" property="flowStep.1.id" />
       </assertFlowStep>
    </petals-assert-flow-instance>
  • Environment:
    -

Activity

Hide
Christophe DENEUX added a comment - Tue, 30 Jun 2015 - 17:04:24 +0200

Ant tasks added in trunk

Show
Christophe DENEUX added a comment - Tue, 30 Jun 2015 - 17:04:24 +0200 Ant tasks added in trunk

People

Dates

  • Created:
    Tue, 30 Jun 2015 - 16:56:59 +0200
    Updated:
    Tue, 30 Jun 2015 - 17:06:55 +0200
    Resolved:
    Tue, 30 Jun 2015 - 17:04:24 +0200