Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents

Description

  • org.joget.workflow.util.XpdlImageUtil
  • Under wflow-wfengine module
  • Utility methods used to generate XPDl image

Code Sample

Code Block
languagejava
import java.io.File;
import org.joget.workflow.util.XpdlImageUtil;
 
//Get the XPDL image
String processDefId = "crm#2#process1";
File xpdlImg = XpdlImageUtil.getXpdlImage(null, processDefId);

Fields

IMAGE_EXTENSION
public static final String IMAGE_EXTENSION = ".jpg";

File extension of the generated XPDL image

IMAGE_FOLDER
public static final String IMAGE_FOLDER = "app_xpdlImages";

The folder name in wflow folder which stores all the XPDL images. 

THUMBNAIL_PREFIX
public static final String THUMBNAIL_PREFIX = "thumb-";

Prefix of the file name for the generated thumbnail image.

THUMBNAIL_SIZE
public static final int THUMBNAIL_SIZE = 400;

Default size used to generate the thumbnail image. 

Methods

createThumbnail
public static void createThumbnail(String path, String processDefId)

Create the XPDL image thumbnail.

Deprecated this is not used in v5 since the Workflow Designer is replaced by a web-based Process Builder

createXpdlImage
public static void createXpdlImage(String designerwebBaseUrl, String processDefId)

Create the XDPL image.

Deprecated this is not used in v5 since the Workflow Designer is replaced by a web-based Process Builder

generateXpdlImage
public static void generateXpdlImage(final String designerwebBaseUrl, final String processDefId)

Queue a task for XPDL image generation.

Deprecated this is not used in v5 since the Workflow Designer is replaced by a web-based Process Builder

generateXpdlImage
public static void generateXpdlImage(final String designerwebBaseUrl, final String processDefId, boolean asynchronous)

Queue a task for XPDL image generation.

Deprecated this is not used in v5 since the Workflow Designer is replaced by a web-based Process Builder

getXpdlImage
public static File getXpdlImage(String designerwebBaseUrl, String processDefId)

Gets the XPDL image.

Parameters:

designerwebBaseUrl - is not used

getXpdlImagePath
public static String getXpdlImagePath(String processDefId)

Gets the XPDL image path in wflow/app_xpdlImages folder

getXpdlThumbnail
public static File getXpdlThumbnail(String designerwebBaseUrl, String processDefId)

Gets the XPDL thumbnail image.

Parameters:

designerwebBaseUrl - is not used