Commit 47847f1f authored by Klaus Wölfel's avatar Klaus Wölfel Committed by Klaus Wölfel

data model: transformation is called by alarm, not by interaction workflow

Interaction workflow could still be used to call the alarm right after appending to data stream
parent 0a59d971
""" """
Handle appended data chunks. This script could be used to call Alarm to handle transformation right after
appending to data stream.
""" """
data_stream = state_change['object'] pass
argument_list = state_change['kwargs']['workflow_method_args']
# call you own script to handle newly appended data which
# is not processed yet, pass data stream start end offset only
end_offset = data_stream.getSize()
packet_size = len(argument_list[0])
start_offset = end_offset - packet_size
data_stream.activate().DataStream_transformTail(start_offset, end_offset)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment