Revision 242

View differences:

branches/modelio3.7.x/src/main/java/org/modelio/togaf/profile/businessarchitecture/customiszation/TogafEventDiagramCustomization.java
36 36
		final PaletteDrawer ProcessGroup = new PaletteDrawer(Messages.getString("PALETTE_Process"), null);
37 37
		ProcessGroup.setInitialState(PaletteDrawer.INITIAL_STATE_OPEN);
38 38
		ProcessGroup.add(toolRegistry.getRegisteredTool("TogafProcessDiagramCommande"));
39
		ProcessGroup.add(toolRegistry.getRegisteredTool("TogafMacroProcessDiagramCommande"));	
39 40
		ProcessGroup.add(toolRegistry.getRegisteredTool("TogafBusinessCollaborationDiagramCommande"));
40 41
		ProcessGroup.add(toolRegistry.getRegisteredTool("TogafEventDiagramCommande"));
41 42
		ProcessGroup.add(toolRegistry.getRegisteredTool("TogafProductDiagramCommande"));
branches/modelio3.7.x/src/main/java/org/modelio/togaf/profile/businessarchitecture/model/TogafProcessFlowDiagram.java
25 25
package org.modelio.togaf.profile.businessarchitecture.model;
26 26

  
27 27
import org.modelio.api.modelio.model.IUmlModel;
28
import org.modelio.metamodel.bpmn.bpmnDiagrams.BpmnProcessCollaborationDiagram;
29
import org.modelio.metamodel.bpmn.processCollaboration.BpmnCollaboration;
28
import org.modelio.metamodel.bpmn.bpmnDiagrams.BpmnProcessDesignDiagram;
30 29
import org.modelio.metamodel.bpmn.processCollaboration.BpmnProcess;
31
import org.modelio.metamodel.bpmn.rootElements.BpmnBehavior;
32
import org.modelio.metamodel.bpmn.rootElements.BpmnRootElement;
33 30
import org.modelio.metamodel.uml.infrastructure.ModelElement;
34 31
import org.modelio.metamodel.uml.infrastructure.Stereotype;
35
import org.modelio.metamodel.uml.statik.NameSpace;
36 32
import org.modelio.metamodel.uml.statik.Package;
37 33
import org.modelio.togaf.impl.TogafArchitectModule;
38 34
import org.modelio.togaf.profile.structure.model.BusinessArchitecture;
39 35

  
40 36
public class TogafProcessFlowDiagram {
41
    private BpmnBehavior behavior = null;
37
    private BpmnProcess process = null;
38
    private BpmnProcessDesignDiagram diagram;
42 39

  
43 40
    public TogafProcessFlowDiagram(ModelElement owner, String diagramName) {
44 41
        IUmlModel model = TogafArchitectModule.getInstance().getModuleContext().getModelingSession().getModel();
45
        BpmnProcess process = null;
46
        BpmnCollaboration collaboration = null;
47 42

  
48
        if (owner instanceof BpmnBehavior) {
49
            this.behavior = (BpmnBehavior) owner;
50
        } else {
51
            this.behavior = (BpmnBehavior) model.createElement("BpmnBehavior");
52
            this.behavior.setOwner((NameSpace) owner);
53
            this.behavior.setName("Process");
54

  
55
            Stereotype sterType = TogafArchitectModule.getInstance().getModuleContext().getModelingSession().getMetamodelExtensions()
56
                    .getStereotype("TogafArchitect", "TogafProcess", this.behavior.getMClass());
57
            this.behavior.getExtension().add(sterType);
58

  
43
        if (owner instanceof BpmnProcess) {
44
            this.process = (BpmnProcess) owner;
59 45
        }
60 46

  
61
        if (this.behavior != null) {
62
            this.behavior.setName(owner.getName());
63
            process = (BpmnProcess) model.createElement("BpmnProcess");
64
            process.setOwner(this.behavior);
65
            this.behavior.setName("Process");
47
        if (this.process != null) {
48
             this.diagram = (BpmnProcessDesignDiagram) model
49
                    .createElement("BpmnProcessDesignDiagram");
66 50

  
67
            for (BpmnRootElement element : this.behavior.getRootElement()) {
68
                if (element instanceof BpmnCollaboration) {
69
                    collaboration = (BpmnCollaboration) element;
70
                }
71
            }
51
            Stereotype sterType = TogafArchitectModule.getInstance().getModuleContext().getModelingSession().getMetamodelExtensions()
52
                    .getStereotype("TogafArchitect", "TogafProcessFlowDiagram", this.diagram.getMClass());
53
            this.diagram.getExtension().add(sterType);
72 54

  
73
            if (collaboration == null) {
74
                collaboration = (BpmnCollaboration) model.createElement("BpmnCollaboration");
75
                collaboration.setOwner(this.behavior);
76
                collaboration.setName("Collaboration");
77
            }
55
            this.diagram.setOrigin(this.process);
56
            this.diagram.setName(diagramName);
78 57

  
79
            BpmnProcessCollaborationDiagram diagram = (BpmnProcessCollaborationDiagram) model
80
                    .createElement("BpmnProcessCollaborationDiagram");
81
        
82
                Stereotype sterType = TogafArchitectModule.getInstance().getModuleContext().getModelingSession().getMetamodelExtensions()
83
                        .getStereotype("TogafArchitect", "TogafProcessFlowDiagram", diagram.getMClass());
84
                diagram.getExtension().add(sterType);
85
    
86

  
87
            diagram.setOrigin(process);
88
            diagram.setName(diagramName);
89
            TogafArchitectModule.getInstance().getModuleContext().getModelioServices().getEditionService().openEditor(diagram);
58
            TogafArchitectModule.getInstance().getModuleContext().getModelioServices().getEditionService().openEditor(this.diagram);
90 59
        }
91 60
    }
92 61

  
93 62
    public BusinessArchitecture getBusinessArchitecture() {
94
        return new BusinessArchitecture((Package) this.behavior.getOwner());
63
        return new BusinessArchitecture((Package) this.process.getOwner());
95 64
    }
96 65

  
97 66
    public void addBusinessArchitecture(BusinessArchitecture owner) {
98
        this.behavior.setOwner(owner.getElement());
67
        this.process.setOwner(owner.getElement());
99 68
    }
100 69

  
101
    public BpmnBehavior getElement() {
102
        return this.behavior;
70
    
71
    public BpmnProcessDesignDiagram getElement(){
72
        return this.diagram;
103 73
    }
104 74

  
75

  
105 76
}
106 77

  
branches/modelio3.7.x/src/main/java/org/modelio/togaf/profile/businessarchitecture/model/TogafMacroProcess.java
1
/** 
2
 * Licensed to the Apache Software Foundation (ASF) under one 
3
 * or more contributor license agreements.  See the NOTICE file 
4
 * distributed with this work for additional information 
5
 * regarding copyright ownership.  The ASF licenses this file 
6
 * to you under the Apache License, Version 2.0 (the 
7
 * "License"); you may not use this file except in compliance 
8
 * with the License.  You may obtain a copy of the License at 
9
 * 
10
 *	http://www.apache.org/licenses/LICENSE-2.0 
11
 * 
12
 *	Unless required by applicable law or agreed to in writing, 
13
 *	software distributed under the License is distributed on an 
14
 *	"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 
15
 *	KIND, either express or implied.  See the License for the 
16
 *	specific language governing permissions and limitations 
17
 *	under the License. 
18
 * 
19
 * 
20
 * @package    org.modelio.togaf. 
21
 * @author     Modelio 
22
 * @license    http://www.apache.org/licenses/LICENSE-2.0 
23
 * @version  1.0.00 
24
 **/
25
package org.modelio.togaf.profile.businessarchitecture.model;
26

  
27
import java.util.List;
28
import org.modelio.metamodel.bpmn.bpmnDiagrams.BpmnCollaborationDiagram;
29
import org.modelio.metamodel.bpmn.processCollaboration.BpmnCollaboration;
30
import org.modelio.metamodel.uml.infrastructure.Dependency;
31
import org.modelio.metamodel.uml.statik.NameSpace;
32
import org.modelio.metamodel.uml.statik.Operation;
33
import org.modelio.metamodel.uml.statik.Package;
34
import org.modelio.metamodel.uml.statik.TemplateParameter;
35
import org.modelio.togaf.impl.TogafArchitectModule;
36
import org.modelio.togaf.profile.structure.model.BusinessArchitecture;
37
import org.modelio.togaf.profile.utils.ModelUtils;
38

  
39
public class TogafMacroProcess {
40
	protected BpmnCollaboration element;
41

  
42
	public TogafMacroProcess() {
43
		this.element = (BpmnCollaboration) TogafArchitectModule.getInstance().getModuleContext().getModelingSession().getModel().createElement(TogafArchitectModule.getInstance().getModuleContext().getModelioServices().getMetamodelService().getMetamodel().getMClass(BpmnCollaboration.class).getName());
44
		ModelUtils.setStereotype(this.element, "TogafArchitect","TogafMacroProcess");
45
		this.element.setName("MacroProcess");
46

  
47
		BpmnCollaborationDiagram diargam = (BpmnCollaborationDiagram) TogafArchitectModule.getInstance().getModuleContext().getModelingSession().getModel().createElement(TogafArchitectModule.getInstance().getModuleContext().getModelioServices().getMetamodelService().getMetamodel().getMClass(BpmnCollaborationDiagram.class).getName());
48
		diargam.setName("MacroProcess diagram");
49
		diargam.setOrigin(this.element);
50
	}
51

  
52
	public TogafMacroProcess(BpmnCollaboration element) {
53
		this.element = element;
54
	}
55

  
56
	public BpmnCollaboration getElement() {
57
		return this.element;
58
	}
59

  
60
	public void setParent(NameSpace parent) {
61
		this.element.setOwner(parent);
62
	}
63

  
64
	public void setParent(Operation parent) {
65
		this.element.setOwnerOperation(parent);
66
	}
67

  
68
	public void setParent(TemplateParameter parent) {
69
		this.element.setOwnerTemplateParameter(parent);
70
	}
71

  
72
	public String getcriticality() {
73
		String res = ModelUtils.getTaggedValue("TogafMacroProcess_criticality", this.element);
74
		if (res.equals("")) {
75
			res = "";
76
		}
77
		return res;
78
	}
79

  
80
	public void setcriticality(String value) {
81
		ModelUtils.addValue("TogafArchitect","TogafMacroProcess_criticality", value, this.element);
82
	}
83

  
84
	public boolean isisAutomated() {
85
		return ModelUtils.hasTaggedValue("TogafMacroProcess_isAutomated", this.element);
86
	}
87

  
88
	public void isisAutomated(boolean value) {
89
		ModelUtils.addValue("TogafArchitect","TogafMacroProcess_isAutomated", value, this.element);
90
	}
91

  
92
	public String getvolumetrics() {
93
		String res = ModelUtils.getTaggedValue("TogafMacroProcess_volumetrics", this.element);
94
		if (res.equals("")) {
95
			res = "";
96
		}
97
		return res;
98
	}
99

  
100
	public void setvolumetrics(String value) {
101
		ModelUtils.addValue("TogafMacroArchitect","TogafMacroProcess_volumetrics", value, this.element);
102
	}
103

  
104
	public BusinessArchitecture getBusinessArchitecture() {
105
		return new BusinessArchitecture((Package) this.element.getOwner());
106
	}
107

  
108
	public void addBusinessArchitecture(BusinessArchitecture model) {
109
		this.element.setOwner(model.getElement());
110
	}
111

  
112
	public List<Initiator> getInitiator() {
113
		List<Initiator> res = new java.util.ArrayList<>();
114
		for (Dependency model_element : this.element.getImpactedDependency()) {
115
			res.add(new Initiator(model_element));
116
		}
117
		return res;
118
	}
119

  
120
	public void addInitiator(Initiator model) {
121
		this.element.getImpactedDependency().add(model.getElement());
122
	}
123

  
124
	public List<Participates> getParticipates() {
125
		List<Participates> res = new java.util.ArrayList<>();
126
		for (Dependency model_element : this.element.getImpactedDependency()) {
127
			res.add(new Participates(model_element));
128
		}
129
		return res;
130
	}
131

  
132
	public void addParticipates(Participates model) {
133
		this.element.getImpactedDependency().add(model.getElement());
134
	}
135

  
136
	public List<Owner> getOwner() {
137
		List<Owner> res = new java.util.ArrayList<>();
138
		for (Dependency model_element : this.element.getImpactedDependency()) {
139
			res.add(new Owner(model_element));
140
		}
141
		return res;
142
	}
143

  
144
	public void addOwner(Owner model) {
145
		this.element.getImpactedDependency().add(model.getElement());
146
	}
147

  
148
	public List<IOFlow> getInIOFlow() {
149
		List<IOFlow> res = new java.util.ArrayList<>();
150
		for (Dependency model_element : this.element.getImpactedDependency()) {
151
			res.add(new IOFlow(model_element));
152
		}
153
		return res;
154
	}
155

  
156
	public void addInIOFlow(IOFlow model) {
157
		this.element.getImpactedDependency().add(model.getElement());
158
	}
159

  
160
	public List<IOFlow> getOutIOFlow() {
161
		List<IOFlow> res = new java.util.ArrayList<>();
162
		for (Dependency model_element : this.element.getDependsOnDependency()) {
163
			res.add(new IOFlow(model_element));
164
		}
165
		return res;
166
	}
167

  
168
	public void addOutIOFlow(IOFlow model) {
169
		this.element.getDependsOnDependency().add(model.getElement());
170
	}
171

  
172
	public List<ServiceProcessSupport> getInServiceProcessSupport() {
173
		List<ServiceProcessSupport> res = new java.util.ArrayList<>();
174
		for (Dependency model_element : this.element.getImpactedDependency()) {
175
			res.add(new ServiceProcessSupport(model_element));
176
		}
177
		return res;
178
	}
179

  
180
	public void addInServiceProcessSupport(ServiceProcessSupport model) {
181
		this.element.getImpactedDependency().add(model.getElement());
182
	}
183

  
184
	public List<ServiceProcessSupport> getOutServiceProcessSupport() {
185
		List<ServiceProcessSupport> res = new java.util.ArrayList<>();
186
		for (Dependency model_element : this.element.getDependsOnDependency()) {
187
			res.add(new ServiceProcessSupport(model_element));
188
		}
189
		return res;
190
	}
191

  
192
	public void addOutServiceProcessSupport(ServiceProcessSupport model) {
193
		this.element.getDependsOnDependency().add(model.getElement());
194
	}
195

  
196
}
0 197

  
branches/modelio3.7.x/src/main/java/org/modelio/togaf/profile/businessarchitecture/model/Participates.java
24 24
 **/
25 25
package org.modelio.togaf.profile.businessarchitecture.model;
26 26

  
27
import org.modelio.metamodel.bpmn.rootElements.BpmnBehavior;
27
import org.modelio.metamodel.bpmn.processCollaboration.BpmnProcess;
28 28
import org.modelio.metamodel.uml.behavior.usecaseModel.Actor;
29 29
import org.modelio.metamodel.uml.infrastructure.Dependency;
30 30
import org.modelio.metamodel.uml.infrastructure.ModelElement;
......
74 74
	}
75 75

  
76 76
	public TogafProcess getTogafProcess() {
77
		return new TogafProcess((BpmnBehavior) this.element.getDependsOn());
77
		return new TogafProcess((BpmnProcess) this.element.getDependsOn());
78 78
	}
79 79

  
80 80
	public void addTogafProcess(TogafProcess model) {
branches/modelio3.7.x/src/main/java/org/modelio/togaf/profile/businessarchitecture/model/Owner.java
24 24
 **/
25 25
package org.modelio.togaf.profile.businessarchitecture.model;
26 26

  
27
import org.modelio.metamodel.bpmn.rootElements.BpmnBehavior;
27
import org.modelio.metamodel.bpmn.processCollaboration.BpmnProcess;
28 28
import org.modelio.metamodel.uml.behavior.usecaseModel.Actor;
29 29
import org.modelio.metamodel.uml.infrastructure.Dependency;
30 30
import org.modelio.metamodel.uml.infrastructure.ModelElement;
......
72 72
	}
73 73

  
74 74
	public TogafProcess getTogafProcess() {
75
		return new TogafProcess((BpmnBehavior) this.element.getDependsOn());
75
		return new TogafProcess((BpmnProcess) this.element.getDependsOn());
76 76
	}
77 77

  
78 78
	public void addTogafProcess(TogafProcess model) {
branches/modelio3.7.x/src/main/java/org/modelio/togaf/profile/businessarchitecture/model/ServiceProcessSupport.java
24 24
 **/
25 25
package org.modelio.togaf.profile.businessarchitecture.model;
26 26

  
27
import org.modelio.metamodel.bpmn.rootElements.BpmnBehavior;
27
import org.modelio.metamodel.bpmn.processCollaboration.BpmnProcess;
28 28
import org.modelio.metamodel.uml.infrastructure.Dependency;
29 29
import org.modelio.metamodel.uml.infrastructure.ModelElement;
30 30
import org.modelio.metamodel.uml.statik.Interface;
......
55 55
	}
56 56

  
57 57
	public TogafProcess getTargetTogafProcess() {
58
		return new TogafProcess((BpmnBehavior) this.element.getDependsOn());
58
		return new TogafProcess((BpmnProcess) this.element.getDependsOn());
59 59
	}
60 60

  
61 61
	public void addTargetTogafProcess(TogafProcess model) {
......
79 79
	}
80 80

  
81 81
	public TogafProcess getSourceTogafProcess() {
82
		return new TogafProcess((BpmnBehavior) this.element.getImpacted());
82
		return new TogafProcess((BpmnProcess) this.element.getImpacted());
83 83
	}
84 84

  
85 85
	public void addSourceTogafProcess(TogafProcess model) {
branches/modelio3.7.x/src/main/java/org/modelio/togaf/profile/businessarchitecture/model/IOFlow.java
24 24
 **/
25 25
package org.modelio.togaf.profile.businessarchitecture.model;
26 26

  
27
import org.modelio.metamodel.bpmn.rootElements.BpmnBehavior;
27
import org.modelio.metamodel.bpmn.processCollaboration.BpmnProcess;
28 28
import org.modelio.metamodel.uml.behavior.commonBehaviors.Signal;
29 29
import org.modelio.metamodel.uml.behavior.usecaseModel.Actor;
30 30
import org.modelio.metamodel.uml.infrastructure.Dependency;
......
136 136
	}
137 137

  
138 138
	public TogafProcess getTargetTogafProcess() {
139
		return new TogafProcess((BpmnBehavior) this.element.getDependsOn());
139
		return new TogafProcess((BpmnProcess) this.element.getDependsOn());
140 140
	}
141 141

  
142 142
	public void addTargetTogafProcess(TogafProcess model) {
......
144 144
	}
145 145

  
146 146
	public TogafProcess getSourceTogafProcess() {
147
		return new TogafProcess((BpmnBehavior) this.element.getImpacted());
147
		return new TogafProcess((BpmnProcess) this.element.getImpacted());
148 148
	}
149 149

  
150 150
	public void addSourceTogafProcess(TogafProcess model) {
branches/modelio3.7.x/src/main/java/org/modelio/togaf/profile/businessarchitecture/model/TogafProcess.java
25 25
package org.modelio.togaf.profile.businessarchitecture.model;
26 26

  
27 27
import java.util.List;
28

  
29
import org.modelio.metamodel.bpmn.bpmnDiagrams.BpmnProcessCollaborationDiagram;
30
import org.modelio.metamodel.bpmn.processCollaboration.BpmnCollaboration;
28
import org.modelio.metamodel.bpmn.bpmnDiagrams.BpmnProcessDesignDiagram;
31 29
import org.modelio.metamodel.bpmn.processCollaboration.BpmnProcess;
32
import org.modelio.metamodel.bpmn.rootElements.BpmnBehavior;
33 30
import org.modelio.metamodel.uml.infrastructure.Dependency;
34 31
import org.modelio.metamodel.uml.statik.NameSpace;
35 32
import org.modelio.metamodel.uml.statik.Operation;
......
41 38
import org.modelio.togaf.profile.utils.ResourceManager;
42 39

  
43 40
public class TogafProcess {
44
	protected BpmnBehavior element;
41
	protected BpmnProcess element;
45 42

  
46 43
	public TogafProcess() {
47
		this.element = (BpmnBehavior) TogafArchitectModule.getInstance().getModuleContext().getModelingSession().getModel().createElement(TogafArchitectModule.getInstance().getModuleContext().getModelioServices().getMetamodelService().getMetamodel().getMClass(BpmnBehavior.class).getName());
44
		this.element = (BpmnProcess) TogafArchitectModule.getInstance().getModuleContext().getModelingSession().getModel().createElement(TogafArchitectModule.getInstance().getModuleContext().getModelioServices().getMetamodelService().getMetamodel().getMClass(BpmnProcess.class).getName());
48 45
		ModelUtils.setStereotype(this.element, "TogafArchitect","TogafProcess");
49 46
		this.element.setName(ResourceManager.getName("TogafProcess"));
50 47

  
51
		BpmnCollaboration collaboration = (BpmnCollaboration) TogafArchitectModule.getInstance().getModuleContext().getModelingSession().getModel().createElement(TogafArchitectModule.getInstance().getModuleContext().getModelioServices().getMetamodelService().getMetamodel().getMClass(BpmnCollaboration.class).getName());
52
		collaboration.setName("Collaboration");
53
		collaboration.setOwner(this.element);
54

  
55
		BpmnProcess process = (BpmnProcess) TogafArchitectModule.getInstance().getModuleContext().getModelingSession().getModel().createElement(TogafArchitectModule.getInstance().getModuleContext().getModelioServices().getMetamodelService().getMetamodel().getMClass(BpmnProcess.class).getName());
56
		process.setName(ResourceManager.getName("TogafProcess"));
57
		process.setOwner(this.element);
58

  
59
		BpmnProcessCollaborationDiagram diargam = (BpmnProcessCollaborationDiagram) TogafArchitectModule.getInstance().getModuleContext().getModelingSession().getModel().createElement(TogafArchitectModule.getInstance().getModuleContext().getModelioServices().getMetamodelService().getMetamodel().getMClass(BpmnProcessCollaborationDiagram.class).getName());
48
		BpmnProcessDesignDiagram diargam = (BpmnProcessDesignDiagram) TogafArchitectModule.getInstance().getModuleContext().getModelingSession().getModel().createElement(TogafArchitectModule.getInstance().getModuleContext().getModelioServices().getMetamodelService().getMetamodel().getMClass(BpmnProcessDesignDiagram.class).getName());
60 49
		diargam.setName(ResourceManager.getName("TogafProcess"));
61
		diargam.setOrigin(process);
50
		diargam.setOrigin(element);
62 51
	}
63 52

  
64
	public TogafProcess(BpmnBehavior element) {
53
	public TogafProcess(BpmnProcess element) {
65 54
		this.element = element;
66 55
	}
67 56

  
68
	public BpmnBehavior getElement() {
57
	public BpmnProcess getElement() {
69 58
		return this.element;
70 59
	}
71 60

  
branches/modelio3.7.x/src/main/java/org/modelio/togaf/profile/businessarchitecture/model/tmp.java
1
package org.modelio.togaf.profile.businessarchitecture.model;
2

  
3
import java.util.UUID;
4

  
5
public class tmp {
6

  
7
    public static void main(String[] args) {
8
       System.out.println(UUID.randomUUID());
9
       System.out.println(UUID.randomUUID());
10
       System.out.println(UUID.randomUUID());
11
       System.out.println(UUID.randomUUID());
12
       System.out.println(UUID.randomUUID());
13
       System.out.println(UUID.randomUUID());
14
       System.out.println(UUID.randomUUID());
15
       System.out.println(UUID.randomUUID());
16
       System.out.println(UUID.randomUUID());
17
       System.out.println(UUID.randomUUID());
18

  
19
    }
20

  
21
}
0 22

  
branches/modelio3.7.x/src/main/java/org/modelio/togaf/profile/businessarchitecture/model/Initiator.java
24 24
 **/
25 25
package org.modelio.togaf.profile.businessarchitecture.model;
26 26

  
27
import org.modelio.metamodel.bpmn.rootElements.BpmnBehavior;
27
import org.modelio.metamodel.bpmn.processCollaboration.BpmnProcess;
28 28
import org.modelio.metamodel.uml.behavior.usecaseModel.Actor;
29 29
import org.modelio.metamodel.uml.infrastructure.Dependency;
30 30
import org.modelio.metamodel.uml.infrastructure.ModelElement;
......
56 56
	}
57 57

  
58 58
	public TogafProcess getTogafProcess() {
59
		return new TogafProcess((BpmnBehavior) this.element.getDependsOn());
59
		return new TogafProcess((BpmnProcess) this.element.getDependsOn());
60 60
	}
61 61

  
62 62
	public void addTogafProcess(TogafProcess model) {
branches/modelio3.7.x/src/main/java/org/modelio/togaf/profile/businessarchitecture/commande/explorer/TogafMacroProcessCommande.java
1
/**
2
 * Licensed to the Apache Software Foundation (ASF) under one
3
 * or more contributor license agreements.  See the NOTICE file
4
 * distributed with this work for additional information
5
 * regarding copyright ownership.  The ASF licenses this file
6
 * to you under the Apache License, Version 2.0 (the
7
 * "License"); you may not use this file except in compliance
8
 * with the License.  You may obtain a copy of the License at
9
 *
10
 *	http://www.apache.org/licenses/LICENSE-2.0
11
 *
12
 *	Unless required by applicable law or agreed to in writing,
13
 *	software distributed under the License is distributed on an
14
 *	"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15
 *	KIND, either express or implied.  See the License for the
16
 *	specific language governing permissions and limitations
17
 *	under the License.
18
 *
19
 *
20
 * @package    org.modelio.togaf.
21
 * @author     Modelio
22
 * @license    http://www.apache.org/licenses/LICENSE-2.0
23
 * @version  1.0.00
24
 **/
25
package org.modelio.togaf.profile.businessarchitecture.commande.explorer;
26

  
27
import java.util.List;
28
import org.modelio.api.modelio.model.IModelingSession;
29
import org.modelio.api.modelio.model.ITransaction;
30
import org.modelio.api.module.IModule;
31
import org.modelio.api.module.command.DefaultModuleCommandHandler;
32
import org.modelio.metamodel.uml.infrastructure.ModelElement;
33
import org.modelio.metamodel.uml.statik.Package;
34
import org.modelio.togaf.impl.TogafArchitectModule;
35
import org.modelio.togaf.profile.businessarchitecture.model.TogafMacroProcess;
36
import org.modelio.vcore.smkernel.mapi.MObject;
37

  
38
public class TogafMacroProcessCommande extends DefaultModuleCommandHandler {
39

  
40
	@Override
41
	public boolean accept(List<MObject> selected_element, IModule module) {
42
		if (selected_element.size() > 0 && selected_element.get(0) instanceof ModelElement) {
43
			ModelElement element = (ModelElement) selected_element.get(0);
44

  
45
			if (element.isStereotyped("TogafArchitect","BusinessArchitecture")) {
46
				return true;
47
			}
48
		}
49
		return false;
50
	}
51

  
52
	@Override
53
	public void actionPerformed(List<MObject> selected_element, IModule module) {
54

  
55
		IModelingSession session = TogafArchitectModule.getInstance().getModuleContext().getModelingSession();
56
		try (ITransaction transaction = session.createTransaction("");) {
57
			ModelElement parent = (ModelElement) selected_element.get(0);
58
			TogafMacroProcess proxy = new TogafMacroProcess();
59

  
60
			if (parent instanceof Package) {
61
				proxy.setParent((Package) parent);
62
			}
63

  
64
			transaction.commit();
65
			TogafArchitectModule.getInstance().getModuleContext().getModelioServices().getNavigationService().fireNavigate(proxy.getElement());
66
		} catch (Exception e) {
67
			e.printStackTrace();
68
		}
69
	}
70

  
71
}
0 72

  
branches/modelio3.7.x/src/main/java/org/modelio/togaf/profile/businessarchitecture/commande/diagram/InitiatorDiagramCommande.java
25 25
package org.modelio.togaf.profile.businessarchitecture.commande.diagram;
26 26

  
27 27
import java.util.List;
28

  
29 28
import org.modelio.api.modelio.diagram.IDiagramGraphic;
30 29
import org.modelio.api.modelio.diagram.IDiagramHandle;
31 30
import org.modelio.api.modelio.diagram.IDiagramLink;
......
41 40

  
42 41
public class InitiatorDiagramCommande extends DefaultLinkTool {
43 42

  
44
	@Override
45
	public boolean acceptFirstElement(IDiagramHandle representation, IDiagramGraphic graphic) {
46
		ModelElement owner = null;
43
    @Override
44
    public boolean acceptFirstElement(IDiagramHandle representation, IDiagramGraphic graphic) {
45
        ModelElement owner = null;
47 46

  
48
		if (graphic instanceof IDiagramDG) {
49
			owner = representation.getDiagram().getOrigin();
50
		} else {
51
			owner = (ModelElement) graphic.getElement();
52
		}
47
        if (graphic instanceof IDiagramDG) {
48
            owner = representation.getDiagram().getOrigin();
49
        } else {
50
            owner = (ModelElement) graphic.getElement();
51
        }
53 52

  
54
		if (owner.isStereotyped("TogafArchitect","OrganizationParticipant")) {
55
			return true;
56
		}
57
		if (owner.isStereotyped("TogafArchitect","TogafOrganizationUnit")) {
58
			return true;
59
		}
60
		return false;
61
	}
53
        if (owner.isStereotyped("TogafArchitect", "OrganizationParticipant")) {
54
            return true;
55
        }
56
        if (owner.isStereotyped("TogafArchitect", "TogafOrganizationUnit")) {
57
            return true;
58
        }
59
        return false;
60
    }
62 61

  
63
	@Override
64
	public boolean acceptSecondElement(IDiagramHandle representation, IDiagramGraphic graphic_source, IDiagramGraphic graphic_target) {
65
		ModelElement owner = null;
62
    @Override
63
    public boolean acceptSecondElement(IDiagramHandle representation, IDiagramGraphic graphic_source, IDiagramGraphic graphic_target) {
64
        ModelElement owner = null;
65
   
66
        if (graphic_target == null) {
67
            owner = representation.getDiagram().getOrigin();
68
        } else {
69
            owner = (ModelElement) graphic_target.getElement();
70
        }
71
  
72
        if (owner.isStereotyped("TogafArchitect", "TogafProcess")) {
73
            return true;
74
        }
66 75

  
67
		if (graphic_target == null) {
68
			owner = representation.getDiagram().getOrigin();
69
		} else {
70
			owner = (ModelElement) graphic_target.getElement();
71
		}
76
        if (owner.isStereotyped("TogafArchitect", "OrganizationParticipant")) {
77
            return true;
78
        }
79
    
80
        return false;
81
    }
72 82

  
73
		if (owner.isStereotyped("TogafArchitect","TogafProcess")) {
74
			return true;
75
		}
76
		if (owner.isStereotyped("TogafArchitect","OrganizationParticipant")) {
77
			return true;
78
		}
79
		return false;
80
	}
83
    @Override
84
    public void actionPerformed(IDiagramHandle representation, IDiagramGraphic graphic_source, IDiagramGraphic graphic_target, LinkRouterKind kind, ILinkPath path) {
85
        IModelingSession session = TogafArchitectModule.getInstance().getModuleContext().getModelingSession();
86
        try (ITransaction transaction = session.createTransaction("");) {
81 87

  
82
	@Override
83
	public void actionPerformed(IDiagramHandle representation, IDiagramGraphic graphic_source, IDiagramGraphic graphic_target, LinkRouterKind kind, ILinkPath path) {
84
		IModelingSession session = TogafArchitectModule.getInstance().getModuleContext().getModelingSession();
85
		try (ITransaction transaction = session.createTransaction("");) {
88
            ModelElement source = (ModelElement) graphic_source.getElement();
89
            ModelElement target = (ModelElement) graphic_target.getElement();
86 90

  
87
			ModelElement source = (ModelElement) graphic_source.getElement();
88
			ModelElement target = (ModelElement) graphic_target.getElement();
91
            Initiator proxy = new Initiator();
92
            proxy.setParent(source, target);
89 93

  
90
			Initiator proxy = new Initiator();
91
			proxy.setParent(source, target);
94
            List<IDiagramGraphic> graph = representation.unmask(proxy.getElement(), 0, 0);
95
            IDiagramLink link = (IDiagramLink) graph.get(0);
96
            link.setRouterKind(kind);
97
            link.setPath(path);
98
            representation.save();
92 99

  
93
			List<IDiagramGraphic> graph = representation.unmask(proxy.getElement(), 0, 0);
94
			IDiagramLink link = (IDiagramLink) graph.get(0);
95
			link.setRouterKind(kind);
96
			link.setPath(path);
97
			representation.save();
100
            transaction.commit();
101
        } catch (Exception e) {
102
            e.printStackTrace();
103
        }
104
    }
98 105

  
99
			transaction.commit();
100
		} catch (Exception e) {
101
			e.printStackTrace();
102
		}
103
	}
104

  
105 106
}
branches/modelio3.7.x/src/main/java/org/modelio/togaf/profile/businessarchitecture/commande/diagram/TogafMacroProcessDiagramCommande.java
1
/** 
2
 * Licensed to the Apache Software Foundation (ASF) under one 
3
 * or more contributor license agreements.  See the NOTICE file 
4
 * distributed with this work for additional information 
5
 * regarding copyright ownership.  The ASF licenses this file 
6
 * to you under the Apache License, Version 2.0 (the 
7
 * "License"); you may not use this file except in compliance 
8
 * with the License.  You may obtain a copy of the License at 
9
 * 
10
 *	http://www.apache.org/licenses/LICENSE-2.0 
11
 * 
12
 *	Unless required by applicable law or agreed to in writing, 
13
 *	software distributed under the License is distributed on an 
14
 *	"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 
15
 *	KIND, either express or implied.  See the License for the 
16
 *	specific language governing permissions and limitations 
17
 *	under the License. 
18
 * 
19
 * 
20
 * @package    org.modelio.togaf. 
21
 * @author     Modelio 
22
 * @license    http://www.apache.org/licenses/LICENSE-2.0 
23
 * @version  1.0.00 
24
 **/
25
package org.modelio.togaf.profile.businessarchitecture.commande.diagram;
26

  
27
import java.util.List;
28
import org.eclipse.draw2d.geometry.Rectangle;
29
import org.modelio.api.modelio.diagram.IDiagramGraphic;
30
import org.modelio.api.modelio.diagram.IDiagramHandle;
31
import org.modelio.api.modelio.diagram.IDiagramNode;
32
import org.modelio.api.modelio.diagram.dg.IDiagramDG;
33
import org.modelio.api.modelio.diagram.tools.DefaultBoxTool;
34
import org.modelio.api.modelio.model.IModelingSession;
35
import org.modelio.api.modelio.model.ITransaction;
36
import org.modelio.metamodel.uml.infrastructure.ModelElement;
37
import org.modelio.metamodel.uml.statik.Package;
38
import org.modelio.togaf.impl.TogafArchitectModule;
39
import org.modelio.togaf.profile.businessarchitecture.model.TogafMacroProcess;
40

  
41
public class TogafMacroProcessDiagramCommande extends DefaultBoxTool {
42

  
43
	@Override
44
	public boolean acceptElement(IDiagramHandle representation, IDiagramGraphic graphic) {
45
		ModelElement owner = null;
46

  
47
		if (graphic instanceof IDiagramDG) {
48
			owner = representation.getDiagram().getOrigin();
49
		} else {
50
			owner = (ModelElement) graphic.getElement();
51
		}
52

  
53
		if (owner.isStereotyped("TogafArchitect","BusinessArchitecture")) {
54
			return true;
55
		}
56
		return false;
57
	}
58

  
59
	@Override
60
	public void actionPerformed(IDiagramHandle representation, IDiagramGraphic graphic, Rectangle rec) {
61
		IModelingSession session = TogafArchitectModule.getInstance().getModuleContext().getModelingSession();
62
		try (ITransaction transaction = session.createTransaction("");) {
63
			ModelElement parent = null;
64

  
65
			if (graphic instanceof IDiagramDG) {
66
				parent = representation.getDiagram().getOrigin();
67
			} else {
68
				parent = (ModelElement) graphic.getElement();
69
			}
70

  
71
			TogafMacroProcess proxy = new TogafMacroProcess();
72

  
73
			if (parent instanceof Package) {
74
				proxy.setParent((Package) parent);
75
			}
76

  
77
			List<IDiagramGraphic> graph = representation.unmask(proxy.getElement(), rec.x, rec.y);
78
			if (graph.size() > 0)
79
				((IDiagramNode) graph.get(0)).setBounds(rec);
80
			representation.save();
81

  
82
			transaction.commit();
83
		} catch (Exception e) {
84
			e.printStackTrace();
85
		}
86
	}
87

  
88
}
0 89

  
branches/modelio3.7.x/src/main/java/org/modelio/togaf/profile/structure/model/BusinessArchitecture.java
25 25
package org.modelio.togaf.profile.structure.model;
26 26

  
27 27
import java.util.List;
28

  
29
import org.modelio.metamodel.bpmn.rootElements.BpmnBehavior;
28
import org.modelio.metamodel.bpmn.processCollaboration.BpmnProcess;
30 29
import org.modelio.metamodel.diagrams.AbstractDiagram;
31 30
import org.modelio.metamodel.diagrams.StaticDiagram;
32 31
import org.modelio.metamodel.uml.behavior.commonBehaviors.Behavior;
......
207 206
	public List<TogafProcess> getTogafProcess() {
208 207
		List<TogafProcess> res = new java.util.ArrayList<>();
209 208
		for (Behavior model_element : this.element.getOwnedBehavior()) {
210
			res.add(new TogafProcess((BpmnBehavior) model_element));
209
			res.add(new TogafProcess((BpmnProcess) model_element));
211 210
		}
212 211
		return res;
213 212
	}
branches/modelio3.7.x/src/main/java/org/modelio/togaf/profile/structure/commande/explorer/BPMNBehaviorCommand.java
1
/**
2
 * Licensed to the Apache Software Foundation (ASF) under one
3
 * or more contributor license agreements.  See the NOTICE file
4
 * distributed with this work for additional information
5
 * regarding copyright ownership.  The ASF licenses this file
6
 * to you under the Apache License, Version 2.0 (the
7
 * "License"); you may not use this file except in compliance
8
 * with the License.  You may obtain a copy of the License at
9
 *
10
 *	http://www.apache.org/licenses/LICENSE-2.0
11
 *
12
 *	Unless required by applicable law or agreed to in writing,
13
 *	software distributed under the License is distributed on an
14
 *	"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15
 *	KIND, either express or implied.  See the License for the
16
 *	specific language governing permissions and limitations
17
 *	under the License.
18
 *
19
 *
20
 * @package    org.modelio.togaf.
21
 * @author     Modelio
22
 * @license    http://www.apache.org/licenses/LICENSE-2.0
23
 * @version  1.0.00
24
 **/
25
package org.modelio.togaf.profile.structure.commande.explorer;
26

  
27
import java.util.List;
28

  
29
import org.modelio.api.modelio.model.IModelingSession;
30
import org.modelio.api.modelio.model.ITransaction;
31
import org.modelio.api.module.IModule;
32
import org.modelio.api.module.command.DefaultModuleCommandHandler;
33
import org.modelio.metamodel.bpmn.bpmnDiagrams.BpmnProcessDesignDiagram;
34
import org.modelio.metamodel.bpmn.processCollaboration.BpmnCollaboration;
35
import org.modelio.metamodel.bpmn.processCollaboration.BpmnProcess;
36
import org.modelio.metamodel.bpmn.rootElements.BpmnBehavior;
37
import org.modelio.metamodel.uml.infrastructure.ModelElement;
38
import org.modelio.metamodel.uml.statik.NameSpace;
39
import org.modelio.togaf.impl.TogafArchitectModule;
40
import org.modelio.vcore.smkernel.mapi.MObject;
41

  
42
public class BPMNBehaviorCommand extends DefaultModuleCommandHandler {
43

  
44
	@Override
45
	public boolean accept(List<MObject> selected_element, IModule module) {
46
		if (selected_element.size() > 0 && selected_element.get(0) instanceof ModelElement) {
47
			ModelElement element = (ModelElement) selected_element.get(0);
48

  
49
			if (element.isStereotyped("TogafArchitect","TogafApplicationCollaboration")) {
50
				return true;
51
			}
52
			if (element.isStereotyped("TogafArchitect","TogafBusinessCollaboration")) {
53
				return true;
54
			}
55
		}
56
		return false;
57
	}
58

  
59
	@Override
60
	public void actionPerformed(List<MObject> selected_element, IModule module) {
61

  
62
		IModelingSession session = TogafArchitectModule.getInstance().getModuleContext().getModelingSession();
63
		try (ITransaction transaction = session.createTransaction("");) {
64
			NameSpace parent = (NameSpace) selected_element.get(0);
65

  
66
			BpmnBehavior interaction = (BpmnBehavior) TogafArchitectModule.getInstance().getModuleContext().getModelingSession().getModel().createElement(TogafArchitectModule.getInstance().getModuleContext().getModelioServices().getMetamodelService().getMetamodel().getMClass(BpmnBehavior.class).getName());
67
			interaction.setOwner(parent);
68
			BpmnCollaboration collaboratin = TogafArchitectModule.getInstance().getModuleContext().getModelingSession().getModel().createBpmnCollaboration();
69
			collaboratin.setOwner(interaction);
70
			BpmnProcess process = TogafArchitectModule.getInstance().getModuleContext().getModelingSession().getModel().createBpmnProcess();
71
			process.setOwner(interaction);
72

  
73
			BpmnProcessDesignDiagram diag = TogafArchitectModule.getInstance().getModuleContext().getModelingSession().getModel().createBpmnProcessDesignDiagram();
74
			diag.setOrigin(process);
75

  
76
			TogafArchitectModule.getInstance().getModuleContext().getModelioServices().getEditionService().openEditor(diag);
77

  
78
			transaction.commit();
79
		} catch (Exception e) {
80
			e.printStackTrace();
81
		}
82
	}
83

  
84
}
branches/modelio3.7.x/src/main/java/org/modelio/togaf/profile/structure/commande/explorer/BPMNProcessCommand.java
1
/**
2
 * Licensed to the Apache Software Foundation (ASF) under one
3
 * or more contributor license agreements.  See the NOTICE file
4
 * distributed with this work for additional information
5
 * regarding copyright ownership.  The ASF licenses this file
6
 * to you under the Apache License, Version 2.0 (the
7
 * "License"); you may not use this file except in compliance
8
 * with the License.  You may obtain a copy of the License at
9
 *
10
 *	http://www.apache.org/licenses/LICENSE-2.0
11
 *
12
 *	Unless required by applicable law or agreed to in writing,
13
 *	software distributed under the License is distributed on an
14
 *	"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15
 *	KIND, either express or implied.  See the License for the
16
 *	specific language governing permissions and limitations
17
 *	under the License.
18
 *
19
 *
20
 * @package    org.modelio.togaf.
21
 * @author     Modelio
22
 * @license    http://www.apache.org/licenses/LICENSE-2.0
23
 * @version  1.0.00
24
 **/
25
package org.modelio.togaf.profile.structure.commande.explorer;
26

  
27
import java.util.List;
28
import org.modelio.api.modelio.model.IModelingSession;
29
import org.modelio.api.modelio.model.ITransaction;
30
import org.modelio.api.module.IModule;
31
import org.modelio.api.module.command.DefaultModuleCommandHandler;
32
import org.modelio.metamodel.bpmn.bpmnDiagrams.BpmnProcessDesignDiagram;
33
import org.modelio.metamodel.bpmn.processCollaboration.BpmnProcess;
34
import org.modelio.metamodel.uml.infrastructure.ModelElement;
35
import org.modelio.metamodel.uml.statik.NameSpace;
36
import org.modelio.togaf.impl.TogafArchitectModule;
37
import org.modelio.vcore.smkernel.mapi.MObject;
38

  
39
public class BPMNProcessCommand extends DefaultModuleCommandHandler {
40

  
41
	@Override
42
	public boolean accept(List<MObject> selected_element, IModule module) {
43
		if (selected_element.size() > 0 && selected_element.get(0) instanceof ModelElement) {
44
			ModelElement element = (ModelElement) selected_element.get(0);
45

  
46
			if (element.isStereotyped("TogafArchitect","TogafApplicationCollaboration")) {
47
				return true;
48
			}
49
			if (element.isStereotyped("TogafArchitect","TogafBusinessCollaboration")) {
50
				return true;
51
			}
52
		}
53
		return false;
54
	}
55

  
56
	@Override
57
	public void actionPerformed(List<MObject> selected_element, IModule module) {
58

  
59
		IModelingSession session = TogafArchitectModule.getInstance().getModuleContext().getModelingSession();
60
		try (ITransaction transaction = session.createTransaction("");) {
61
			NameSpace parent = (NameSpace) selected_element.get(0);
62

  
63
			BpmnProcess process = (BpmnProcess) TogafArchitectModule.getInstance().getModuleContext().getModelingSession().getModel().createElement(TogafArchitectModule.getInstance().getModuleContext().getModelioServices().getMetamodelService().getMetamodel().getMClass(BpmnProcess.class).getName());
64
			process.setOwner(parent);
65

  
66
			BpmnProcessDesignDiagram diag = TogafArchitectModule.getInstance().getModuleContext().getModelingSession().getModel().createBpmnProcessDesignDiagram();
67
			diag.setOrigin(process);
68

  
69
			TogafArchitectModule.getInstance().getModuleContext().getModelioServices().getEditionService().openEditor(diag);
70

  
71
			transaction.commit();
72
		} catch (Exception e) {
73
			e.printStackTrace();
74
		}
75
	}
76

  
77
}
0 78

  
branches/modelio3.7.x/src/main/conf/res/style/togaf.style
15 15
BPMNBEHAVIOR_REPMODE=IMAGE
16 16
ACTOR_REPMODE=IMAGE
17 17
BPMNPROCESS_REPMODE=IMAGE
18
BPMNCOLLABORATION_REPMODE=IMAGE
18 19
CLASS_ATT_SHOWSTEREOTYPE=ICON
19 20
INTERFACE_SHOWSTEREOTYPE=ICON
20 21
INSTANCE_SHOWSTEREOTYPE=ICON
branches/modelio3.7.x/src/main/conf/module.properties
232 232
BusinessProcess.image = res/bmp/profile/togafprocess16.png
233 233
BusinessProcess.group =
234 234
BusinessProcess.groupimage =
235
MacroProcess.label = Macro Process
236
MacroProcess.tooltip = Macro Process
237
MacroProcess.image = res/bmp/profile/macroprocessus16.png
238
MacroProcess.group =
239
MacroProcess.groupimage =
235 240
BusinessCollaboration.label = Business Collaboration
236 241
BusinessCollaboration.tooltip = Business Collaboration
237 242
BusinessCollaboration.image = res/bmp/profile/businesscollaboration16.png
......
644 649
TogafProcessDiagramCommande.label = Business Process
645 650
TogafProcessDiagramCommande.tooltip = Business Process
646 651
TogafProcessDiagramCommande.image = res/bmp/profile/togafprocess16.png
652
TogafMacroProcessDiagramCommande.label = Macro Process
653
TogafMacroProcessDiagramCommande.tooltip = Macro Process
654
TogafMacroProcessDiagramCommande.image = res/bmp/profile/macroprocessus16.png
647 655
TogafBusinessCollaborationDiagramCommande.label = Business Collaboration
648 656
TogafBusinessCollaborationDiagramCommande.tooltip = Business Collaboration
649 657
TogafBusinessCollaborationDiagramCommande.image = res/bmp/profile/businesscollaboration16.png
branches/modelio3.7.x/src/main/conf/module.xml
177 177
                <Image path="res/bmp/profile/owner32.png"/>
178 178
                <TagTypes/>
179 179
            </Stereotype>
180
            <Stereotype name="TogafProcess" metaclass="BpmnBehavior" owner-stereotype="TogafElement" is-hidden="false" label="business process" uid="ed5991c5-e515-11e0-bbbe-bc305ba4815c">
180
            <Stereotype name="TogafProcess" metaclass="Behavior" owner-stereotype="TogafElement" is-hidden="false" label="business process" uid="ed5991c5-e515-11e0-bbbe-bc305ba4815c">
181 181
                <Icon path="res/bmp/profile/togafprocess16.png"/>
182 182
                <Image path="res/bmp/profile/togafprocess32.png"/>
183 183
                <TagTypes>
......
190 190
                    <TagType name="TogafProcess_kind" uid="f11205e5-e515-11e0-bbbe-bc305ba4815c" label="kind" parameter-card="1" is-hidden="false" is-signed="false"/>
191 191
                </TagTypes>
192 192
            </Stereotype>
193
            <Stereotype name="TogafMacroProcess" metaclass="Behavior" owner-stereotype="TogafProcess" is-hidden="false" label="macro process" uid="e130f312-89f4-4bdf-a341-b0537ebafdbc">
194
                <Icon path="res/bmp/profile/macroprocessus16.png"/>
195
                <Image path="res/bmp/profile/macroprocessus48.png"/>
196
                <TagTypes>
197
                    <TagType name="TogafMacroProcess_criticality" uid="f5b56f37-744d-456d-8ce9-6508713eacdb" label="criticality" parameter-card="1" is-hidden="false" is-signed="false"/>
198
                    <TagType name="TogafMacroProcess_isAutomated" uid="e6ce8941-b129-4972-a864-18d34c6404db" label="isAutomated" parameter-card="0" is-hidden="false" is-signed="false"/>
199
                    <TagType name="TogafMacroProcess_volumetrics" uid="82d279cf-d485-450b-adf9-cc2ed321fa14" label="volumetrics" parameter-card="1" is-hidden="false" is-signed="false"/>
200
                    <TagType name="TogafMacroProcess_duration" uid="98d435b6-0459-43b3-b25d-8da9fcd26782" label="duration" parameter-card="1" is-hidden="false" is-signed="false"/>
201
                    <TagType name="TogafMacroProcess_KPI" uid="222a31be-00f4-4a6c-82e1-62b46c4d6aa6" label="kpi" parameter-card="1" is-hidden="false" is-signed="false"/>
202
                    <TagType name="TogafMacroProcess_used_resources" uid="9ebafe60-7ecc-436f-9418-c4bd8d5a19b1" label="used_resources" parameter-card="1" is-hidden="false" is-signed="false"/>
203
                    <TagType name="TogafMacroProcess_kind" uid="a8e2c5f4-3fc5-4710-b2c3-0e92d2a9053d" label="kind" parameter-card="1" is-hidden="false" is-signed="false"/>
204
                </TagTypes>
205
            </Stereotype>
193 206
            <Stereotype name="TogafProcess_old" metaclass="Activity" owner-stereotype="TogafElement" is-hidden="false" label="business process" uid="1476e48a-ab77-11df-9861-0014224f9977">
194 207
                <Icon path="res/bmp/profile/togafprocess16.png"/>
195 208
                <Image path="res/bmp/profile/togafprocess32.png"/>
......
1220 1233
            <Command id="BPMNBehavior" label="%BPMNBehavior.label" tooltip="%BPMNBehavior.tooltip" image="%BPMNBehavior.image" group="%BPMNBehavior.group" modify-model="true" group-image="%BPMNBehavior.groupimage">
1221 1234
                <Scope metaclass="Class" stereotype="TogafBusinessCollaboration"/>
1222 1235
                <Scope metaclass="Collaboration" stereotype="TogafApplicationCollaboration"/>
1223
                <Handler class="org.modelio.togaf.profile.structure.commande.explorer.BPMNBehaviorCommand"/>
1236
                <Handler class="org.modelio.togaf.profile.structure.commande.explorer.BPMNProcessCommand"/>
1224 1237
            </Command>
1225 1238
            <Command id="TechnologyDomain" label="%TechnologyDomain.label" tooltip="%TechnologyDomain.tooltip" image="%TechnologyDomain.image" group="%TechnologyDomain.group" modify-model="true" group-image="%TechnologyDomain.groupimage">
1226 1239
                <Scope metaclass="Package" stereotype="TechnologyArchitecture"/>
......
1288 1301
                <Scope metaclass="Package" stereotype="BusinessArchitecture"/>
1289 1302
                <Handler class="org.modelio.togaf.profile.businessarchitecture.commande.explorer.TogafProcessCommande"/>
1290 1303
            </Command>
1304
            <Command id="MacroProcess" label="%MacroProcess.label" tooltip="%MacroProcess.tooltip" image="%MacroProcess.image" group="%MacroProcess.group" modify-model="true" group-image="%MacroProcess.groupimage">
1305
                <Scope metaclass="Package" stereotype="BusinessArchitecture"/>
1306
                <Handler class="org.modelio.togaf.profile.businessarchitecture.commande.explorer.TogafMacroProcessCommande"/>
1307
            </Command>
1291 1308
            <Command id="BusinessCollaboration" label="%BusinessCollaboration.label" tooltip="%BusinessCollaboration.tooltip" image="%BusinessCollaboration.image" group="%BusinessCollaboration.group" modify-model="true" group-image="%BusinessCollaboration.groupimage">
1292 1309
                <Scope metaclass="Package" stereotype="BusinessArchitecture"/>
1293 1310
                <Handler class="org.modelio.togaf.profile.businessarchitecture.commande.explorer.TogafBusinessCollaborationCommand"/>
......
1564 1581
                    <HParameter name="metaclass" value="Activity"/>
1565 1582
                </Handler>
1566 1583
            </Tool>
1584
            <Tool id="TogafMacroProcessDiagramCommande" label="%TogafMacroProcessDiagramCommande.label" tooltip="%TogafMacroProcessDiagramCommande.tooltip" image="%TogafMacroProcessDiagramCommande.image">
1585
                <Handler class="org.modelio.togaf.profile.businessarchitecture.commande.diagram.TogafMacroProcessDiagramCommande">
1586
                    <HParameter name="metaclass" value="Activity"/>
1587
                </Handler>
1588
            </Tool>
1567 1589
            <Tool id="TogafBusinessCollaborationDiagramCommande" label="%TogafBusinessCollaborationDiagramCommande.label" tooltip="%TogafBusinessCollaborationDiagramCommande.tooltip" image="%TogafBusinessCollaborationDiagramCommande.image">
1568 1590
                <Handler class="org.modelio.togaf.profile.businessarchitecture.commande.diagram.TogafBusinessCollaborationDiagramCommande">
1569 1591
                    <HParameter name="metaclass" value="Class"/>
......
1924 1946
            <CommandRef refid="TechnologyArtifact"/>
1925 1947
            <CommandRef refid="OrganizationDomain"/>
1926 1948
            <CommandRef refid="OrganizationUnit"/>
1949
            <CommandRef refid="BusinessProcess"/>
1950
            <CommandRef refid="MacroProcess"/>
1927 1951
            <CommandRef refid="ExternalActor"/>
1928 1952
            <CommandRef refid="InternalActor"/>
1929 1953
            <CommandRef refid="ExternalRole"/>
1930 1954
            <CommandRef refid="InternalRole"/>
1931 1955
            <CommandRef refid="Event"/>
1932
            <CommandRef refid="BusinessProcess"/>
1933 1956
            <CommandRef refid="BusinessCollaboration"/>
1934 1957
            <CommandRef refid="BusinessService"/>
1935 1958
            <CommandRef refid="ISService"/>

Also available in: Unified diff