Interface SystemConnector
public interface SystemConnector
This is the interface, a System Connector has to implement.
-
Method Summary
Modifier and TypeMethodDescriptionInstruct the external system to claim a task.Instruct the external system to claim a task.Instruct the external system to complete a task.Get the system identifier of the external system this connector connects to.Get the URL of the external system this connector connects to.Retrieve ReferencedTasks that were finished.Retrieve ReferencedTasks that were started within the last polling interval.Get the variables of the ReferencedTask.voidtaskanaTaskFailedToBeCreatedForNewReferencedTask(ReferencedTask referencedTask, Exception e) With this call the Adapter notifies the SystemConnector that a TASKANA task has failed to be created.voidtaskanaTasksHaveBeenCreatedForNewReferencedTasks(List<ReferencedTask> referencedTasks) With this call the Adapter notifies the SystemConnector that a list of TASKANA tasks has been created.voidtaskanaTasksHaveBeenTerminatedForFinishedReferencedTasks(List<ReferencedTask> referencedTasks) With this call the Adapter notifies the SystemConnector that a list of TASKANA tasks has been terminated.voidunlockEvent(String eventId) Instruct the external system to unlock the event.
-
Method Details
-
retrieveNewStartedReferencedTasks
List<ReferencedTask> retrieveNewStartedReferencedTasks()Retrieve ReferencedTasks that were started within the last polling interval.- Returns:
- a list of created ReferencedTasks that don't have an associated TASKANA task yet.
-
taskanaTasksHaveBeenCreatedForNewReferencedTasks
With this call the Adapter notifies the SystemConnector that a list of TASKANA tasks has been created. Depending on the Implementation of the SystemConnector, it may ignore this call.- Parameters:
referencedTasks- List of ReferencedTasks for which TASKANA tasks have been created.
-
retrieveFinishedReferencedTasks
List<ReferencedTask> retrieveFinishedReferencedTasks()Retrieve ReferencedTasks that were finished.- Returns:
- a list of ReferencedTasks that were finished
-
taskanaTasksHaveBeenTerminatedForFinishedReferencedTasks
With this call the Adapter notifies the SystemConnector that a list of TASKANA tasks has been terminated. The rationale for this action is that ReferencedTasks in the external system were finished. Depending on the Implementation of the SystemConnector, it may ignore this call.- Parameters:
referencedTasks- List of ReferencedTasks for which TASKANA Tasks have been terminated.
-
retrieveReferencedTaskVariables
Get the variables of the ReferencedTask.- Parameters:
taskId- the Id of the ReferencedTask.- Returns:
- the variables of the ReferencedTask.
-
completeReferencedTask
Instruct the external system to complete a task.- Parameters:
task- the task to be completed.- Returns:
- the response from the external system.
-
claimReferencedTask
Instruct the external system to claim a task.- Parameters:
task- the task to be claimed.- Returns:
- the response from the external system.
-
cancelClaimReferencedTask
Instruct the external system to claim a task.- Parameters:
task- the task to cancel the claim on.- Returns:
- the response from the external system.
-
getSystemUrl
String getSystemUrl()Get the URL of the external system this connector connects to.- Returns:
- the URL of the connected external system.
-
getSystemIdentifier
String getSystemIdentifier()Get the system identifier of the external system this connector connects to.- Returns:
- the system identifier of the connected external system.
-
taskanaTaskFailedToBeCreatedForNewReferencedTask
With this call the Adapter notifies the SystemConnector that a TASKANA task has failed to be created. Depending on the implementation of the SystemConnector, it may ignore this call.- Parameters:
referencedTask- The ReferencedTasks for which the TASKANA task failed to be createde- exception
-
unlockEvent
Instruct the external system to unlock the event.- Parameters:
eventId- the id of the event that needs to be unlocked
-