public SetWorkflowItemPositionRequest(WorkflowItem workflowItem)
        {
            this.Position = new Position(workflowItem.Position.X, workflowItem.Position.Y);

            RestUrl = String.Format("/workflowitems/{0}/position", workflowItem.Id);
            Method = Method.POST;
        }
 public WorkflowItem(int id, Position position, bool locked, IList<int> nextItem )
 {
     Id = id;
     this.Position = position;
     Lock = locked;
     NextItem = nextItem;
 }
        public CreateWorkflowItemRequest(int workflowId, WorkflowItem workflowItem)
        {
            Type = workflowItem.Type;
            this.Position = new Position(workflowItem.Position.X, workflowItem.Position.Y);

            RestUrl = String.Format("/workflows/{0}/workflowitems", workflowId);
            Method = Method.PUT;
        }
 public Start(int id, Position position, bool locked, IList<int> nextItem )
     : base(id, position, locked, nextItem)
 {
     Type = WorkflowItemType.START;
 }
 public WorkflowItem()
 {
     Position = new Position();
     NextItem = new List<int>();
 }
Exemple #6
0
 public End(int id, Position position, bool locked, IList<int> nextItem)
     : base(id, position, locked, nextItem)
 {
     Type = WorkflowItemType.END;
 }
Exemple #7
0
 public Fork(int id, Position position, bool locked, IList<int> nextItem)
     : base(id, position, locked, nextItem)
 {
     Type = WorkflowItemType.FORK;
 }
Exemple #8
0
 public Join(int id, Position position, bool locked, IList<int> nextItem)
     : base(id, position, locked, nextItem)
 {
     Type = WorkflowItemType.JOIN;
 }