An application is declared to participate in a workflow by the application
tag in the XPDL. This declaration is associated with the implementation class of ToolAgent
using an extension. The extension syntax supported allows to specify properties of the tool agent (see the User Manual for details).
An implementation of ToolAgent
must be aware that several application invocations may be performed using the same instance of the class implementing ToolAgent
. This implies that implementations must be thread-safe.
By default, the {@link #invoke invoke
} method has fullaccess to the activity as specified by the {@link de.danet.an.workflow.api.Activity activityinterface}. Implementations that require long term storage of the activity must be aware that the activity is passed as an interface to a remote object and therefore unsuitable for long term persistence. Tool agents should persist the activity's unique key instead of the activity. The activity may later be retrieved from the key using {@link de.danet.an.workflow.api.ProcessDirectory#lookupActivity ProcessDirectory.lookupActivity
} (obtaining theprocess directory from the {@link de.danet.an.workflow.api.WorkflowService#processDirectory WorkflowService
}.
@see de.danet.an.workflow.spis.aii
|
|
|
|