Workflow Execution View Control
- Last UpdatedJun 10, 2024
- 2 minute read
The WorkflowExecutingReport Control shows the Process Execution View of the currently executing workflow.
To add workflow executing report control using a panel
-
Before adding the Process Designer control in a panel, Create an ASP.NET Project in Visual Studio .NET.
-
Go to ExecuteReport.aspx.cs page.
-
Make sure that you have initialized the User Context object as per the steps given in Create User Context.
-
In the underlying code, create a new instance of control and add the instance to the panel in the Page_Load, as in the example below.
Skelta.Core.ApplicationObject application = new Skelta.Core.ApplicationObject("Telematics Repository");//Repository name
object loggedinUserId = "81734457-B3DB-4BC9-894A-C3149828C65C";
Skelta.Entity.UserContext userContext = new Skelta.Entity.UserContext(loggedinUserId, application, "skeltalist");
Workflow.NET.Web.Report.WorkflowExecutionReport wf = new Workflow.NET.Web.Report.WorkflowExecutionReport();
wf.Application = userContext.Repository.ApplicationName;
wf.ExecutionId = 1;
wf.Height = Unit.Percentage(100);
Panel1.Controls.Add(wf);
Different Properties that can be set for WorkflowExecutingReport Control are:
-
Application:Provide the ApplicationName or Repository Name for the workflow report to be viewed.
-
ExecutionId:Provide the ExecutionId (from the table SWExecute) of the workflow for which report has to be viewed.
-
OnlyAnalystsView: If the OnlyAnalystsView property is set to true, then only the AnalystsView will be displayed (Progress View and Execution View will not be displayed).
-
CanControlWorkflow: If the CanControlWorkflow property is set to true, then you can Abort Executing Workflow and Pause Executing Workflow.
Different views in the Process Execution Window
-
The Analyst's View is a simplified view of the process design intended for end-users. You can save the simplified view of the process as a file and associate this filename in the Start Activity to enable this view for the end users.
-
The Progress View shows the workflow progress on the Process Diagram, up to the point that the Execution View is selected. It consists of the execution view mapped on to the Process Diagram. You can click a completed activity to view the Step Details window. You can view the step details, variables, contents, content (raw content passed to the workflow) using the corresponding tabs. The links that have already been traversed are represented by thick lines.
-
The Execution View shows the workflow execution status up to the point the execution has happened.