Joget DX 8 Stable Released
The stable release for Joget DX 8 is now available, with a focus on UX and Governance.
Table of Contents |
---|
Code Block | ||
---|---|---|
| ||
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); |
public static final String IMAGE_EXTENSION = ".jpg";
File extension of the generated XPDL image
public static final String IMAGE_FOLDER = "app_xpdlImages";
The folder name in wflow folder which stores all the XPDL images.
public static final String THUMBNAIL_PREFIX = "thumb-";
Prefix of the file name for the generated thumbnail image.
public static final int THUMBNAIL_SIZE = 400;
Default size used to generate the thumbnail image.
public static void createThumbnail(java.lang.String path, java.lang.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
public static void createXpdlImage(java.lang.String designerwebBaseUrl, java.lang.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
public static void generateXpdlImage(final java.lang.String designerwebBaseUrl, final java.lang.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
public static void generateXpdlImage(final java.lang.String designerwebBaseUrl, final java.lang.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
public static java.io.File getXpdlImage(java.lang.String designerwebBaseUrl, java.lang.String processDefId)
Gets the XPDL image.
Parameters:
designerwebBaseUrl - is not used
public static java.lang.String getXpdlImagePath(java.lang.String processDefId)
Gets the XPDL image path in wflow/app_xpdlImages folder
public static java.io.File getXpdlThumbnail(java.lang.String designerwebBaseUrl, java.lang.String processDefId)
Gets the XPDL thumbnail image.
Parameters:
designerwebBaseUrl - is not used