You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I change the DSL to support a UserTask (package WorkflowCore.Users) on my solution and I wish to share with you my solution. With there changes you will be able to implement a workflow definition using json or yaml
_definitionLoader.LoadDefinition(json,Deserializers.Json,(mapper)=>{if(mapper.Source.Options!=null&&mapper.Step.GetType().ContainsProperty("Options")){mapper.Step.SetProperty("Options",mapper.Source.Options);}});//where ContainsProperty and SetProperty are 2 extension methods publicstaticboolContainsProperty(thisTypetargetType,stringpropertyName){if(targetType==null||String.IsNullOrEmpty(propertyName))returnfalse;varprop=targetType.GetProperty(propertyName);returnprop!=null;}publicstaticvoidSetProperty(thisWorkflowStepstep,stringpropertyName,objectobj){if(step==null||String.IsNullOrEmpty(propertyName)||obj==null)return;varprop=step.GetType().GetProperty(propertyName);if(prop!=null)prop.SetValue(step,obj,null);}
Hi,
I change the DSL to support a UserTask (package WorkflowCore.Users) on my solution and I wish to share with you my solution. With there changes you will be able to implement a workflow definition using json or yaml
First of all adding this class:
Then change the object StepSourceV1 adding Option property
Change IDefinitionLoader adding an overload of LoadDefinition method
Last changes on DefinitionLoader
and from the row 107
How to use ?
this is an example:
this is a Json example :
The text was updated successfully, but these errors were encountered: