Exampple.Router.Task (exampple v0.10.6)

Starts the handling of the stanza. This task is launched by Exampple.Router.Task.Monitor and it is using the Exampple.Router to route the stanza to the correct controller.

Link to this section Summary

Functions

The code which is being ran by the task. The information provided is required to create the Exampple.Router.Conn struct so, we need the stanza as a Exampple.Xml.Xmlel struct into the xmlel parameter, the domain for the component and the otp_app (application) we are using as the main one of our project.

Starts the task under the Exampple.Router.Task.Supervisor providing the stanza in xmlel format, the domain for the component and the otp_app (application name).

Stops the task running in the process identified by the pid parameter using the supervisor to perform this action correctly.

Link to this section Functions

Link to this function

run(xmlel, domain, otp_app)

The code which is being ran by the task. The information provided is required to create the Exampple.Router.Conn struct so, we need the stanza as a Exampple.Xml.Xmlel struct into the xmlel parameter, the domain for the component and the otp_app (application) we are using as the main one of our project.

Link to this function

start(xmlel, domain, otp_app)

Starts the task under the Exampple.Router.Task.Supervisor providing the stanza in xmlel format, the domain for the component and the otp_app (application name).

Stops the task running in the process identified by the pid parameter using the supervisor to perform this action correctly.