コード例 #1
0
 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);
 }
コード例 #2
0
 public WFDefinitionViewModel(IViewModelDependencies appCtx, IZetboxContext dataCtx, ViewModel parent, wf.WFDefinition obj)
     : base(appCtx, dataCtx, parent, obj)
 {
     WFDefinition = obj;
 }
コード例 #3
0
        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;
        }