BPXE.Engine.PrecedenceGateway (bpxe v0.4.0)

Note: This gateway is not described in BPMN 2.0. However, it's available through BPXE's extension schema.

This gateway will only process the first model of a received token (tracked by token_id) and send it out to a corresponding output. The correspondance is achieved by requiring the same number of incoming and outgoing sequence flows and they will be mapped directly, so that Nth incoming flow will trigger Nth outgoing flow.

Link to this section Summary

Link to this section Functions

Link to this function

before_handle_token(arg, state)

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

get_input_data(id, state)

Link to this function

get_output_data(id, state)

Link to this function

handle_completion(state)

Link to this function

handle_recovery(recovered, state)

Link to this function

handle_token(arg, 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

initialize_base(state)

Link to this function

send(sequence_flow, token, state)

Link to this function

send_token(sequence_flow, token, state)

Link to this function

set_input_data(id, value, token, state)

Link to this function

set_output_data(id, value, token, state)

Link to this function

start_link(element, attrs, model, process)

Link to this function

synthesize(state)