AutoRun Plug-in

The AutoRun plug-in is used exclusively in Microsoft Excel-based Studio solutions that use a custom workflow.

This plug-in allows you to automatically run a routed data file to a specified SAP system using Winshuttle SAPIS (SAP Integration Server) instead of the Runner’s desktop.

On this page

Configure the AutoRun Plug-in

  1. Decide when you would like to perform the AutoRun step in your workflow.
  2. Place a plug-in node on the canvas. Note that placement does not necessarily have to be within a particular swim lane. See the value pair runnernode in the AutoRun plug-in parameters table (below) for more information on node placement.
  3. In the Plug-in Name field, select Winshuttle AutoRun, and then set the Synchronous field to False.
  4. Note: Setting Synchronous to false pauses the workflow until the Autorun job is completed.

  5. In the Properties Pane, next to Plug-in Parameters, click the options button to configure the value pairs described in the AutoRun plug-in parameters table (below).

AutoRun Plug-in Parameters Table

Back to top

Value Pair

Description

retries

If an error occurs during AutoRun, this parameter defines the number of retries to be made.

retryminutes

This parameter defines the number of minutes between retries.

runnernode

The runner node can be configured in 1 of 2 ways: 

  • Select a specific node: In the Properties Pane next to RunnerNode, click the options button. On the Edit Runnernode screen, then click Node to select a specific activity or approval node in the workflow.

    The person assigned to the selected node will be used as the runner. If there are multiple users in the selected node (such as multiple approvers, for example), then the most recent user to have completed the activity (the most recent approver, for example) will be used.
    Edit Winshuttle Update Runner Node screenshot
  • Blank: If the Runnernode setting is left blank, the plug-in will use the user from the nearest activity (such as an Approval node) in the swimlane in which the Winshuttle Update plug-in is located. If this would result in multiple users, then the most recent user from the list of users will be used.
scriptname Set this option to run a specific script (selected from the drop-down list) to run with an Excel-based workflow.

validate

(Yes/No) Whether or not to validate prior to posting. This is mandatory.

The AutoRun plug-in will automatically use a Runner’s credentials (designated by placement in the canvas or the runnernode value).

Notes:

  • Credentials for all potential Runners must be configured prior to using this plug-in.
  • If no specific node is specified in the runnernode parameter and no other activities or approvals exist in the same swimlane, the Autopost plug-in will use Workflow Administrator (WFAdmin) account, which requires a Winshuttle User Governance license and must be assigned access in SAP.
  • The Sync plug-in property should be set to false so that the workflow pauses until the AutoRun job is completed.
  • When more than one script is using the same template, their Run log fields should also be mapped to different columns.

Checking AutoRun Job status

You can check the status of running jobs on the Manage Scheduled Jobs page. The following messages can also be found in the listed meta data for the jobs:

Error returned

Metadata

SAP posting

ErrorRows and TotalRows

Winshuttle SERVER

Data Post Status

An error occurred in CENTRAL or in Winshuttle SERVER

Data Post Status

Validation Failed: Validation failed for Central policies, licenses, roles, or SAP credentials

Approval error

The metadata errors in the table above can be referenced in your workflow as well to determine if the workflow can end after the AutoRun is complete, or whether further intervention may be required.

Example (Reference the workflow images below): Place the AutoRun plug-in in a loop. If the ErrorRows metadata shows 0 after the run, the loop finishes and the workflow continues. If ErrorRows is anything other than 0, the file will route to the SAP team for correction and resubmission to AutoRun again. This would repeat until errors reach 0.