terminateSuccess

The terminateSuccess method must be called by the CUWO when it has successfully performed its job and wants to let the enfore runtime know that it is done and that the web view can be closed.

The method is defined as:

/**
 * Notify container of successful completion of the workflow
 * and terminate it.
 *
 * The actual result type depends on the extension point the
 * workflow was called for.
 * 
 * @param result - The NFON-serialized workflow-specific result structure.
 */
public terminateSuccess(
    result : string<? extends WorkflowResult>,
) : void

The method receives a single parameter that is of type string. The string must contain the NFON-serialization of the workflow-specific subtype of WorkflowResult. For example, for a RefundLineItem workflow, the string must contain a serialized RefundLineItemWorkflowResult.

The method is available for all types of CUWOs.