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

Christophe DENEUX made changes - Tue, 30 Jun 2015 - 16:57:10 +0200
Field Original Value New Value
Status New [ 10000 ] Open [ 10002 ]
Priority Major [ 3 ]
Christophe DENEUX made changes - Tue, 30 Jun 2015 - 16:57:15 +0200
Status Open [ 10002 ] In Progress [ 10003 ]
Christophe DENEUX made changes - Tue, 30 Jun 2015 - 17:04:24 +0200
Status In Progress [ 10003 ] Resolved [ 10004 ]
Fix Version/s 2.4.1 [ 10521 ]
Resolution Fixed [ 1 ]
Christophe DENEUX made changes - Tue, 30 Jun 2015 - 17:06:55 +0200
Component/s Task 'petals-assert-flow-instance' [ 10372 ]
Component/s Task 'petals-monit-read-logfiles' [ 10370 ]

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