Skip to main content

ProGlove Documentation

Examples of Workflow Rules

For a better understanding of how to define and work with your Workflow Rules, see a few examples below.

Example 1: Add the prefix 0

To add a 0 at the beginning of all scanned barcodes:

  1. Type in the Rule Name.

  2. Select Incoming Barcode under the Trigger section and click Save trigger.

    Add0beforebarcodeTrigger.png
  3. Under Action, click Add.

  4. Select Barcode Transformation and then Prepend text from the drop-down menu.

  5. Under Text to prepend, type in 0 and select Save Action.

    Add0beforebarcodeAction.png
  6. The created Workflow rule action displays under the Action section, and a notification confirms a successful process, offering a quick way to add more actions and/or conditions.

    Add0beforebarcodeSaveAction.png
  7. Click Save Workflow Rule.

    The rule displays in the list. Once you save and apply the configuration to your Android device, you will see a 0 in front of all your scanned barcodes.

    Add0beforebarcodeSaveRule.png
Example 2: Add the prefix 0 for 12-digit barcodes

This rule will only affect the 12-digit barcodes. All other barcodes will be scanned and sent without modification.

To add a 0 at the beginning of 12-digit barcodes:

  1. Select Incoming Barcode under the Trigger section and click Save trigger.

  2. Under Condition, select Barcode length and is equal, then type in 12 as the barcode length value.

    Example2SaveCondition.png
  3. Select Save Condition.

  4. Under Action, click Add.

  5. Select Barcode Transformation and then Prepend text from the drop-down menu.

  6. Under Text to prepend, type in 0 and click Save Action.

    Example2defineAction.png
  7. Select Save Workflow Rule.

    The rule displays in the list. Once you save and apply the configuration to your Android device, all scanned 12-digit barcodes will have the prefix 0.

    Example2SaveRule.png
Example 3: Replace FNC1 with [

The FNC1 character (group separator) is a non-printable character with the HEX value of 1D. This rule will replace all instances of FNC1 with the [ character. All other barcodes will be scanned and sent without modification.

Example3SaveAction.png
  1. Type in the Rule Name.

  2. Select Incoming Barcode under the Trigger section and click Save trigger.

  3. Under Action, click Add.

  4. Select Barcode Transformation and then Replace regex from the drop-down menus.

  5. Under Regular Expression type \x1D, and under Replacement Text type [. Make sure to select Apply to All so that all instances are modified.

  6. Select Save Action.

  7. Select Save Workflow Rule.

    The rule displays in the list.

After you apply the configuration to your Android device, the FNC1 character in all scanned barcodes will be replaced with [.

Note

You can use this rule to replace other non-printable characters (e.g. CR, LF, GS, RS, ETX, STX, etc.) by changing the \x1D in the Workflow Rule Action to the desired character's ASCII HEX value.