public WFDefinitionDesigner(IViewModelDependencies appCtx, IZetboxContext dataCtx, ViewModel parent, wf.WFDefinition obj) : base(appCtx, dataCtx, parent) { WFDefinition = obj; _hiddenAction = appCtx.Factory.CreateViewModel <HiddenGraphElementViewModel.Factory>().Invoke(dataCtx, this); _hiddenStateChange = appCtx.Factory.CreateViewModel <HiddenGraphElementViewModel.Factory>().Invoke(dataCtx, this); }
public WFDefinitionViewModel(IViewModelDependencies appCtx, IZetboxContext dataCtx, ViewModel parent, wf.WFDefinition obj) : base(appCtx, dataCtx, parent, obj) { WFDefinition = obj; }
public static void StartWorkflow(ReceiptTemplate obj, MethodReturnEventArgs <Zetbox.Basic.Workflow.WFInstance> e, Zetbox.Basic.Workflow.WFDefinition workflow) { var ctx = obj.Context; var instance = ctx.Create <wf.WFInstance>(); instance.Payload.SetObject(obj); instance.Summary = obj.Description; instance.Start(workflow); e.Result = instance; }