SmartAPI
Open Source .NET RQL library for RedDot CMS / OpenText WSM Management Server
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Properties Pages
IWorkflowAction.cs
Go to the documentation of this file.
1 ï»¿// SmartAPI - .Net programmatic access to RedDot servers
2 //
3 // Copyright (C) 2013 erminas GbR
4 //
5 // This program is free software: you can redistribute it and/or modify it
6 // under the terms of the GNU General Public License as published by the Free Software Foundation,
7 // either version 3 of the License, or (at your option) any later version.
8 // This program is distributed in the hope that it will be useful,
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
11 // See the GNU General Public License for more details.
12 //
13 // You should have received a copy of the GNU General Public License along with this program.
14 // If not, see <http://www.gnu.org/licenses/>.
15 
16 using System;
17 using System.Xml;
18 using erminas.SmartAPI.Utils;
19 
20 namespace erminas.SmartAPI.CMS.Project.Workflows
21 {
23  {
24  string Path { get; }
25  WorkflowActionType Type { get; set; }
26  }
27 
28  //todo implement correctly
29  internal class WorkFlowAction : RedDotProjectObject, IWorkFlowAction
30  {
31  private WorkflowActionType _type;
32 
33  internal WorkFlowAction(IProject project, XmlElement xmlElement) : base(project, xmlElement)
34  {
35  }
36 
37  internal WorkFlowAction(IProject project, Guid guid) : base(project, guid)
38  {
39  }
40 
41  public string Path
42  {
43  get
44  {
45  string path = null;
46  if (_type == WorkflowActionType.WriteWorkflowXmlFile)
47  {
48  path = XmlElement.GetAttributeValue("path");
49  }
50  return path;
51  }
52  }
53 
54  public WorkflowActionType Type
55  {
56  get { return _type; }
57  set { _type = value; }
58  }
59  }
60 
61  public enum WorkflowActionType
62  {
63  None = 0,
64  ContentWorkflow = 1115,
65  StructureWorkflow = 1116,
66  PageCreated_Action = 1120,
67  PageChanged_Action = 1125,
68  PageDeleted_Action = 1130,
69  PageConnectedToLink_Action = 1140,
70  PageDisconnectedFromLink_Action = 1145,
71  ReleasePage_Reaction = 1155,
72  ReleaseByWebComplianceManager_Reaction = 1156,
73  ReleaseOfAStructure_Reaction = 1157,
74  EmailNotification_Reaction = 1170,
75  PageForwarding_Reaction = 1175,
76  PageEscalated_Action = 1177,
77  StartPublication_Reaction = 1178,
78  PageReleased_Action = 1185,
79  PageRejected_Action = 1190,
80  PageTransferredToOtherLanguageVariants_Reaction = 1200,
81  AutomaticResubmission_Reaction = 1205,
82  PageTranslated_Action = 1210,
83  AssignKeywordToPage_Reaction = 1310,
84  AssignKeywordToStructureElement_Reaction = 1315,
85  PageAttachedToStructure_Reaction = 1340,
86  PageDisconnectedFromStructure_Reaction = 1345,
87  WriteWorkflowXmlFile = 1225
88  };
89 }