-
Notifications
You must be signed in to change notification settings - Fork 2
/
constants.py
49 lines (41 loc) · 1.47 KB
/
constants.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# These are various constants and mappings we rely on
# Namespaces
xsi_ns = 'http://www.w3.org/2001/XMLSchema-instance'
bpmn20_ns = 'http://www.omg.org/spec/BPMN/20100524/MODEL'
activiti_ns = 'http://activiti.org/bpmn'
xml_namespaces = {
'':bpmn20_ns, 'activiti':activiti_ns,
'modeler':'http://activiti.com/modeler',
'bpmndi':'http://www.omg.org/spec/BPMN/20100524/DI',
'omgdc':'http://www.omg.org/spec/DD/20100524/DC',
'omgdi':'http://www.omg.org/spec/DD/20100524/DI',
'xsi':'http://www.w3.org/2001/XMLSchema-instance',
'xsd':'http://www.w3.org/2001/XMLSchema',
}
# Marker for a field id's label "field"
field_label_marker_suffix = "-label"
# Activiti tasks types as used by Alfresco One
start_task = "bpm:startTask"
# Mappings from Activiti Online to Alfresco one models
model_types = { bpmn20_ns: {
"startEvent": start_task,
"userTask": "bpm:activitiOutcomeTask",
}}
# Mappings from Activiti Online form fields to Share ones
property_types = {
"date": "d:date",
"integer": "d:int",
"text": "d:text",
"multi-line-text": "d:text",
"amount": "d:text", # See ACE-877 for "proper" support request
"readonly-text": "d:text",
"radio-buttons": "d:text",
"dropdown": "d:text",
}
assoc_types = {
"people": [False,False,"cm:person",False,False],
}
# Ones where field -> params -> field holds type information
type_nested_in_params = ["readonly"]
# Outcomes which want the default Alfresco transitions
transition_default_names = ["Submit","Start Workflow"]