Using SAS Workflow Studio,
you can create a workflow template that can be started from SAS Task Manager,
can accept data values from the user, and can be transitioned to a Done state
to complete the workflow.
To create the workflow
template in SAS Workflow Studio:
-
Create a new workflow
template named
Example.
-
Create two tasks and
define these tasks as
Start and
End.
-
For each task, create
a data object. For the
Start task, name the
data object
MessageIn and for the
End task,
name the data object
MessageOut. Use the
short text data type for both data objects and add the following attributes:
This enables these data
objects be visible and editable in SAS Task Manager.
-
To pass data values
from one object to another, add a new
Policy on
the
Start task that copies the data object
value from
MessageIn to
MessageOut with
the event type of
Task Finished. This enables
you to edit the data value first and have it passed over to another
data object once the status has been modified.
-
Add
Data
Management Stewards as a group participant on both the
Start and
End tasks.
-
Add a
Confirm status
and set it for the transition between the
Start and
End tasks.
-
Add a
Done status
and set it as the transition between the
End task
and the terminating task represented by
.
-
Upload this workflow
template to the SAS server. Log on to the SAS Server from the main
menu and save this new workflow to the online repository, activating
it before you complete the transaction.
You now have a workflow
template that enables any user in the Data Management
Stewards group to invoke it, start a workflow, add a
message to it, and mark it complete. In a more elaborate scenario,
this same design might include a new Invoke Web Service policy
that takes the input from the data steward, passes it into the web
service, and sends an e-mail confirmation to the data steward when
the web service successfully completes.