Scriptable use cases

The Scriptable Workflow has two distinct use cases that can be applied to real-life situations.

Use Case A

The user's aim in this case is to create a storage workflow, specifying his own destination. The user can decide whether to create a final document at the end of the workflow or not. Configuring this workflow requires basic programming skills.

Perform the following steps to configure a storage location specific scenario:

  1. Launch the Scriptable Workflow in Administration Console.
  2. Navigate to the Store Workflow Results tab.
  3. Modify the default script in accordance with your specific storage needs.
    
                            public Result EvalCode(ICommunicationObject io)
                            {
                            //add your workflow result storing code here
                            return Result.Ok;
                            }
                            
  4. Configure the Workflow section in the Settings pane to arrange how the workflow items will follow each other.
  5. Specify one or more Document services, configuring their position in the Order of Operations dialog.
  6. Save your workflow by clicking the Save Current Profile button.
  7. Select the Devices tab and click Simulator to open the Configure Connectors for Device window.
  8. Locate Scriptable in the list and select the check box of the profile you want to work with on the device.

Use Case B

The user's aim in this case is to create a most complex workflow that cannot be achieved with the existing connector and extender set. Configuring this workflow requires basic programming skills and a full understanding of what existing eCopy Connectors are capable of.

Perform the following steps to configure a storage location specific scenario:

  1. Launch the Scriptable Workflow in Administration Console.
  2. Navigate to the Initialize Form tab.
  3. Modify the default script in accordance with your specific form initialization needs.
    
                            public Result EvalCode(ICommunicationObject io)
                            {
                            //add your form initialization code here
                            return Result.Ok;
                            }
                            
  4. Navigate to the Form Designer tab.
  5. Drag-and-drop the required control types to the Scriptable form in the desired order.
  6. Specify the event handler for each control by clicking the lightning icon and selecting the relevant event handler (OnEnter, and so on).
  7. Navigate to the Validate Form Data tab.
  8. Modify the default script in accordance with your specific form validation needs.
    
                            public Result EvalCode(ICommunicationObject io)
                            {
                            //add your form validation code here
                            return Result.Finished;
                            }
                            
  9. Navigate to the Store Workflow Results tab.
  10. Modify the default script in accordance with your specific storage needs.
    
                            public Result EvalCode(ICommunicationObject io)
                            {
                            //add your workflow result storing code here
                            return Result.Ok;
                            }
                            
  11. Configure the Workflow section in the Settings pane to arrange how the workflow items will follow each other.
  12. Specify one or more Document services, configuring their position in the Order of Operations dialog.
  13. Save your workflow by clicking the Save Current Profile button.
  14. Launch Data Publishing Mapper and map the previously configured controls in the Published Key list with the Connector Keys in the Connector Key list.
  15. Select the Devices tab and click Simulator to open the Configure Connectors for Device window.
  16. Locate Scriptable in the list and clear the check box of the profile you want to work with on the device.