1 package org.andromda.cartridges.jbpm.metafacades;
2
3 import org.andromda.cartridges.jbpm.JBpmProfile;
4
5
6
7
8
9
10 public class JBpmStateLogicImpl
11 extends JBpmStateLogic
12 {
13 private static final long serialVersionUID = 34L;
14
15
16
17
18 public JBpmStateLogicImpl (Object metaObject, String context)
19 {
20 super (metaObject, context);
21 }
22
23
24
25
26 protected boolean handleIsTaskNode()
27 {
28 return hasStereotype(JBpmProfile.STEREOTYPE_TASK);
29 }
30
31
32
33
34
35 protected Object handleGetSwimlane()
36 {
37 return this.getPartition();
38 }
39
40
41
42
43
44 @Override
45 public String getNodeClassName()
46 {
47 return this.getSuperJBpmEventState().getNodeClassName();
48 }
49
50
51
52
53
54 @Override
55 public String getNodePackageName()
56 {
57 return this.getSuperJBpmEventState().getNodePackageName();
58 }
59
60
61
62
63
64 @Override
65 public JBpmProcessDefinition getProcessDefinition()
66 {
67 return this.getSuperJBpmEventState().getProcessDefinition();
68 }
69
70
71
72
73
74
75
76 @Override
77 public boolean isContainedInBusinessProcess()
78 {
79 return this.getSuperJBpmEventState().isContainedInBusinessProcess();
80 }
81 }