Module: Mbpm_node

Defined in:
lib/ontomde-java/jpdl/jpdl.rb,
lib/ontomde-java/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

Instance Method Details

#bpm_graphGen_dotObject



285
286
287
288
289
290
291
292
293
# File 'lib/ontomde-java/jpdl/main.rb', line 285

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_writeJPDLObject



208
209
210
211
212
213
214
215
216
# File 'lib/ontomde-java/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_extensionsObject



217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
# File 'lib/ontomde-java/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

#bpmNodeNameObject



204
205
206
# File 'lib/ontomde-java/jpdl/jpdl.rb', line 204

def bpmNodeName
  return self.bpm_nodeName
end