Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ Work Tasks

Use Redirection Enabled Property for Synchronous Execution

Use Redirection Enabled Property for Synchronous Execution

  • Last UpdatedJun 10, 2024
  • 2 minute read

Workflows can also be executed synchronously using the Redirection Enabled Property in Human Activities in Process Designer.

Example scenarios for synchronous execution

When a customer submits a support request online, the request is analyzed for product, severity and other criteria and the request number and estimated days for resolution are displayed to the customer. This requires the AVEVA Work Tasks engine to return values to the client. For a sample implementation, see the example below. 

In a vendor invoice approval process, after approval by the Manager, the invoice status is changed to Awaiting entry in ERP. The Manager needs to be able to see the current status after submission of the approval without refreshing the page with the list of invoices. In this case, the Redirection Enabled property is used with the Information activity to display information on current invoice status to the manager.

In an online Customer Survey, survey questions are successively displayed based on responses to previous questions.

A company uses a different payroll application for each country in which it operates. When an employee submits a request for details of balances in the retirement funds, the system validates the employee code and based on country of employment forwards the request details to the payroll application for that country and redirects the employee to the employee account page in the payroll application for the employee's country.

Enable redirection

To enable redirection from activity 1 to activity 2:

  • Set the "Redirection Enabled?" property in Activity 1 as Yes.

  • In Activity 2 set the "Redirect URL" property.

  • If the redirection needs to happen to the work item list of the user assigned to activity 1, enter the URL  as http://<%ApplicationPath%>/Default/<%DefaultPage%>?<%workitemid%>.

Example:

Redirecting from Client after Synchronous execution is performed (Engine sends a URL to client after the activity is executed)

Description

  • The workflow is invoked from the code using ExecuteBlocking method.

  • The workflow consists of an activity whose RedirectURL property is configured.

The client waits for the activity to execute, gets the url to be redirected from engine, and redirects to the specified link in the Redirection URL property of th activity.

Workflow Design


Activity Properties

Redirect Url Property

SampleCode

Workflow.NET.Engine.Client cl = new Workflow.NET.Engine.Client("Application", "Workflow");

Workflow.NET.Engine.SynchronousActionData syncData = new Workflow.NET.Engine.SynchronousActionData(false, this.Context);  

string url = "";

cl.ExecuteBlocking("activedirectory::bob", "<content></content>", syncData, true, out url);

cl.Close();


In This Topic
TitleResults for “How to create a CRG?”Also Available in