You are here

getProcessDiagram

public ContentStream getProcessDiagram(...) returns a thumbnail of the process diagram, based on either the specified process object or a process identifier.

The process diagram provides a visual illustration of the workflow process.

Attention: This method was introduced in SDK version 1.3.

getProcessDiagram

public ContentStream getProcessDiagram(Process process) returns a thumbnail of the process diagram.

The process diagram provides a visual illustration of the workflow process.

Attention: This method was introduced in SDK version 1.3.

Parameters

Process process
The process for which to fetch the process diagram.

Returns

Returns a ContentStream object representing a thumbnail of the process diagram.

Exception

Throws an SkyVaultServiceException if the operation cannot be completed.

Throws an UnsupportedMethodException if the underlying engine is jBPM.

Example


ContentStream contentStream = workflowService.getProcessDiagram(process);
        
      

getProcessDiagram

public ContentStream getProcessDiagram(String processId) returns a thumbnail of the process diagram.

The process diagram provides a visual illustration of the workflow process.

Attention: This method was introduced in SDK version 1.3.

Parameters

String processId
The process identifier for which to fetch the process diagram.

Returns

Returns a ContentStream object representing a thumbnail of the process diagram.

Exception

Throws an SkyVaultServiceException if the operation cannot be completed.

Throws an UnsupportedMethodException if the underlying engine is jBPM.

Example


ContentStream contentStream = workflowService.getProcessDiagram(processId);