...
Expand |
---|
title | And some custom status |
---|
|
See Custom Status Code Block |
---|
require "FIL.FILreadWrite"
function Status(N, Total)
component.setStatus{data="Sending "..N.." of "..Total}
end
function StatusDone(Total)
component.setStatus{data="Completed sending "..Total.." messages."}
end
function main(Data)
local F = component.fields().InputFile
trace(F)
local Content = FILread(F)
local List = Content:split("\n")
trace(#List)
iguana.logInfo("#start About to queue "..#List.." messages");
for i=1, #List do
Status(i, #List)
queue.push{data=List[i]}
end
StatusDone(#List)
iguana.logInfo("#end Finished queueing "..#List.." messages");
end |
|
Expand |
---|
title | Like a copy of the code? |
---|
|
The repository is here: https://bitbucket.org/interfaceware/feeder/src/main/ - Git URL is git@bitbucket.org:interfaceware/feeder.git See Create component from Git URL |
Expand |
---|
title | Couple of videos showing the component in action |
---|
|
This shows using the component and the internals: internals.mp4And this one shows using the logs from the component: logs.mp4 |
And now we have a simple tool that makes it easy to test our HL7 interfaces. But more importantly this exercise put together a set of little concepts that once you grasp you can solve not only simple problems, but you can build up the skills to be able solve complex ones as well. There are no bottlenecks you cannot remove.
...