IncCounter activity

Build 1501 on 14/Nov/2017  This topic last edited on: 21/Mar/2016, at 19:01

Properties

CounterName (String): the name of the counter to increment

Amount (int) (optional): the amount of increment (0=no increment, Amount<0 is no valid value) (default value 1)

ObjectIds (List of Int) (0ptional): Objects to be associated to the counter (if possible)

SetTo(int): Set it to a specific numeric value to set counter for objects.

Input Properties used for get the counter data (as a XML into the OutCounter property):

TimeInterval(int) (optional): Time interval to use (0= Total, 1=Hours, 2=Days, 3=Weeks, 4=Months, 5=years)

From (optional): Start time date

To (optional): End time date

Output

OutCounter: An XML with the Output counter data (with the incremented counter value).

Example:

Increment "ExampleCounter" (General counter, no object associated) by two, the "ExampleCounterValue" activity get the value of incremented counter (N) and set the value "value"

<IncCounter

  x:Name="incCounterActivity"

  CounterName="ExampleCounter"

  Amount="2">

          

  <TransformXml

    x:Name="ExampleCounterValue"

    XmlIn="{wf:ActivityBind incCounterActivity, Path=OutCounter}">

           

    <TransformXml.XmlValues>

      <XmlDataArray>

        <XmlValue Key="value" XPath="//@N" />

      </XmlDataArray>

    </TransformXml.XmlValues>

           

  </TransformXml>

</IncCounter>

Since the version 1.6, the activity has a new SetTo integer property. Set it to a specific numeric value to set counter for objects.