public override NextCall Invoke(WorkflowMethod invoker) { string selectedKeysString = GetUnsecureInput<string>("SelectedValues"); UniqueList<CKeyNLR> selectedContents = new UniqueList<CKeyNLR>(); foreach (string keyString in selectedKeysString.Split('|')) { if (keyString != null && keyString.Length > 0) selectedContents.Add(new CKeyNLR(keyString)); } WMContentTreeView.SetDefaultSelectedContents(selectedContents, RelHierarchical.RelationId, Session.CompleteKeyC(Session.SiteId), false); WMCreateContent diag = new WMCreateContent(0, false); return new NextCall(diag, onComplete); }
public override NextCall Invoke(WorkflowMethod invoker) { MemDefContentClass baseClassDef = WAFRuntime.Definitions.ContentClass[DiscountBase.ContentClassId]; UniqueList<int> classesToInclude = new UniqueList<int>(); foreach (int classId in baseClassDef.AllDescendantsIncThis) { if (classId != DiscountBase.ContentClassId) { classesToInclude.Add(classId); } } WMCreateContent d = new WMCreateContent(classesToInclude, false, false); return new NextCall(d, onComplete); }
public override NextCall Invoke(WorkflowMethod invoker) { WMCreateContent d = new WMCreateContent(VisitorSegment.ContentClassId, false, false); return new NextCall(d, onComplete); }
public override NextCall Invoke(WorkflowMethod invoker) { WMCreateContent d = new WMCreateContent(ProductCategory.ContentClassId, false, false); return new NextCall(d, onComplete); }
protected void btnNewPaymentMethod_Click(object sender, EventArgs e) { WMCreateContent createContentWM = new WMCreateContent(PaymentMethod.ContentClassId); //createContentWM.C WAF.Engine.Workflow.Runtime.WorkflowInfo wi = WAFContext.Session.StartWorkflowMethod(createContentWM); wi.InBackgroundMode = false; }
public override NextCall Invoke(WorkflowMethod invoker) { int baseClassId = this.GetSecureInput<int>(); WMCreateContent diag = new WMCreateContent(baseClassId, false); return new NextCall(diag, onCompleteCreate); }
public override NextCall Invoke(WorkflowMethod invoker) { WorkflowMethod next = new WMCreateContent(GetSecureInput<UniqueList<int>>(), true, false); return new NextCall(next, onComplete); }
protected void btnAddManufacturer_Click(object sender, EventArgs e) { WMCreateContent createContentWM = new WMCreateContent(Manufacturer.ContentClassId); WAF.Engine.Workflow.Runtime.WorkflowInfo wi = WAFContext.Session.StartWorkflowMethod(createContentWM); wi.InBackgroundMode = false; }
public override NextCall Invoke(WorkflowMethod invoker) { int baseClassId = MVCTemplate.ContentClassId; WMCreateContent diag = new WMCreateContent(baseClassId, false); return new NextCall(diag, onCompleteCreate); }