BackSrcActivityInstanceID in the activity instance table identifies whether the node instance is a returned node instance, and the activity return type BackwardType field also identifies the specific return type. Therefore, it is necessary to determine whether the BackSrcActivityInstanceID is empty to decide whether to call the running interface or the return interface.

if (runningNode.BackSrcActivityInstanceID == null )

RunProcess();

else

ResendProcess();