Get Current Step
  • 02 Feb 2023
  • 1 Minute to read
  • Dark
    Light

Get Current Step

  • Dark
    Light

Article Summary

Step Details

Introduced in Version4.0.0
Last Modified in Version5.12.0
LocationSystem > Advanced > Debugger

The Get Current Step returns the name of the step from the specified debugger Id.


Properties

Inputs

PropertyDescriptionData Type
Debug IdThe Id of the desired debugged FlowString

Outputs

PropertyDescriptionData Type
OutputName of the step foundString

Example Inputs and Outputs

Debug IdOutput
dd11abc646c4636b8c506e55f68a418_debug
[no current step]
2f21074d709e4d7f8bafbf8bb3eed2ca_debug
Pause Flow 1
EmptyEXCEPTION MESSAGE
NullEXCEPTION MESSAGE


Common Errors

Debug entity with id = ' ' not found

If the Debug Id value is null or empty, the step will cause an error.

To correct this, ensure that the Id is entered or mapped correctly.

Exception Message:

Exception Stack Trace: DecisionsFramework.Design.Flow.ErrorRunningFlowStep: Error running step Get Current Step 1[GetCurrentStep] in flow [Example]: Exception invoking method GetCurrentStep on class DebuggerSteps
 ---> DecisionsFramework.LoggedException: Exception invoking method GetCurrentStep on class DebuggerSteps
 ---> System.InvalidOperationException: Debug entity with id = '' not found. 
at DecisionsFramework.Design.Flow.Service.Debugging.DebugData.DebugDataStorage.Retrieve(String id, Boolean failIfNotFound
 at DecisionsFramework.Design.Flow.Service.Debugging.DebugData.DebuggerSteps.GetCurrentStep(String debugId)
   --- End of inner exception stack trace --- at DecisionsFramework.Design.Flow.StepImplementations.InvokeMethodStep.Run(StepStartData data
 at DecisionsFramework.Design.Flow.FlowStep.RunStepInternal(String flowTrackingID, String stepTrackingID, KeyValuePairDataStructure[] stepRunDataValues, AbstractFlowTrackingData trackingData
 at DecisionsFramework.Design.Flow.FlowStep.Start(String flowTrackingID, String stepTrackingID, FlowStateData data, AbstractFlowTrackingData trackingData, RunningStepData currentStepData)
   --- End of inner exception stack trace ---



Was this article helpful?