Detecting which step of the flow is in
On the form side, the information about which step of the flow is can be learned with the following code.
Required Libraries
using System; using System.Collections.Generic; using Bimser.CSP.FormControls.Common; using Bimser.CSP.FormControls.Events; using Newtonsoft.Json.Linq; using Bimser.Synergy.Entities.Workflow.Runtime.Models.Controller; using Bimser.CSP.Runtime.Common.Extensions;
Code
if (ResponseParameters.TryGetValue("workflowInfo", out object workflowInfoObject))
{
var workflowInfo = ((JObject)workflowInfoObject). ToObject<
WorkflowInfo>
();
LogExtension.Log("Current Step: "+workflowInfo.CurrentStep.Name,Session);
}