completeTaskFromJourney
Topics: Jobs
Complete a journey task with the result of the journey the caller ran. The result is checked against the journey's declared outputs; the journey's own steps already ran as the caller. Requires task:transition, and the caller must be the assignee, the claimer, a member of the assigned team while unclaimed, or a task:write holder. Repeating it with the same result returns the completed task.
Returns
TaskPayload!Arguments
The journey task to complete
The published version of the task's journey that the caller ran; its declared outputs check the result
The finished run's outputs: an object keyed by the journey's declared output keys (a resource output is { id, label })
Exact field SDL
"""
Complete a journey task with the result of the journey the caller ran. The result is checked against the journey's declared outputs; the journey's own steps already ran as the caller. Requires task:transition, and the caller must be the assignee, the claimer, a member of the assigned team while unclaimed, or a task:write holder. Repeating it with the same result returns the completed task.
"""
completeTaskFromJourney(
"""The journey task to complete"""
taskId: TaskID!
"""
The published version of the task's journey that the caller ran; its declared outputs check the result
"""
journeyVersionId: JourneyVersionID!
"""
The finished run's outputs: an object keyed by the journey's declared output keys (a resource output is { id, label })
"""
result: JSON!
): TaskPayload! @topic(names: ["jobs"])Declared on Mutation. Access is checked by the platform for each operation.