View Source Skitter.BIS.ImmutableLocalInvocation (Skitter v0.5.0)
Strategy for stateless components which modify the invocation.
This strategy enables components to modify the invocation of received data element. It expects a
update_invocation
callback, which accepts the invocation of the received data element as its
first argument and the data element as its second argument. This callback should return a
modified invocation, which will be used as the invocation of the emitted output. The received
data will remain unchanged.
Component Properties
- in ports: A single in port is required.
- out ports: A single out port is required.
- callbacks:
update_invocation
(required): Called for each incoming data elementconf
(optional): Called at deployment time. The result will be passed as config to each call ofupdate_invocation
.