Module: Mbpm_node
- Defined in:
- lib/ontomde-uml2-jpdl/jpdl.rb,
lib/ontomde-uml2-jpdl/main.rb
Constant Summary collapse
- JPDL_ACTION_NOTIF =
write element as XML JPDL
%{<action name="action" class="com.incomplete.action.ExceptionActionGenericHandler"/>}
- JPDL_EXCEPTION_NOTIF =
%{<action name="action" class="com.incomplete.action.ExceptionActionGenericHandler"/>}
- JPDL_EVENTS =
["node-enter","node-leave","before-signal","after-signal"]
- JPDL_EXCEPTIONS =
["exception-handler"]
Instance Method Summary collapse
- #bpm_graphGen_dot ⇒ Object
- #bpm_writeJPDL ⇒ Object
- #bpm_writeJPDL_extensions ⇒ Object
- #bpmNodeName ⇒ Object
Instance Method Details
#bpm_graphGen_dot ⇒ Object
279 280 281 282 283 284 285 286 287 |
# File 'lib/ontomde-uml2-jpdl/main.rb', line 279 def bpm_graphGen_dot return # todo write %{#{self.dotId} [#{bpm_dotStyle}]\n} bpm_leavingTransition.each { |t| e=t.bpm_enteringTransition_inv_one write %{#{self.dotId} -> #{e.dotId} \n} } if kind_of?(Mbpm_source_Node) end |
#bpm_writeJPDL ⇒ Object
208 209 210 211 212 213 214 215 216 |
# File 'lib/ontomde-uml2-jpdl/jpdl.rb', line 208 def bpm_writeJPDL nt=bpm_getJPDLTypeName write(%{ <#{nt} name="#{self.bpmNodeName}">\n}) bpm_writeJPDL_extensions bpm_leavingTransition.each { |t| t.bpm_writeJPDL } if kind_of?(Mbpm_source_Node) write(%{ </#{nt}>\n}) end |
#bpm_writeJPDL_extensions ⇒ Object
217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 |
# File 'lib/ontomde-uml2-jpdl/jpdl.rb', line 217 def bpm_writeJPDL_extensions return if context[:bpm_rawJPDL] if kind_of?(Mbpm_decision_Node) write(%{<handler class="com.incomplete.action.MessageActionGenericHandler"/>\n}) end JPDL_EVENTS.each { |evt| write(%{ <event type="#{evt}">\n}) write(%{ #{JPDL_ACTION_NOTIF}\n}) write(%{ </event>\n}) } write(%{ <exception-handler exception-class="com.incomplete.process.ProcessException">\n}) write(%{ #{JPDL_EXCEPTIONS}\n}) write(%{ </exception-handler>\n}) end |
#bpmNodeName ⇒ Object
204 205 206 |
# File 'lib/ontomde-uml2-jpdl/jpdl.rb', line 204 def bpmNodeName return self.bpm_nodeName end |