BPXE.Engine.PrecedenceGateway (bpxe v0.1.0)

Note: This gateway is not described in BPMN 2.0. Currently it can only be added programmatically (not through BPMN XML document, at this time)

This gateway will only process the first instance of a received message (tracked by message_id) and send it out to a corresponding output. The correspondance is achieved by requiring the same number of incoming and outgoing sequence flows. Outgoing sequence flows have to have an additional option {BPXE.BPMN.ext_spec(), "correspondsTo"} set to the name of the outgoing sequence flow.

Link to this section Summary

Link to this section Functions

Link to this function

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

Link to this function

enter_loop(state)

Link to this function

handle_completion(state)

Link to this function

handle_message(arg, state)

Link to this function

handle_recovery(recovered, state)

Callback implementation for GenServer.init/1.

Link to this function

init_flow_node(state)

Link to this function

init_recoverable(state)

Link to this function

initialize(state)

Link to this function

send(sequence_flow, msg, state)

Link to this function

send_message(sequence_flow, msg, state)

Link to this function

start_link(id, options, instance, process)