Versions Compared

Key

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

Table of Contents

Description

Thai

ลักษณะ

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

Code Sample

Thai

ตัวอย่างโค้ด

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

Thai

ฟิลด์

IMAGE_EXTENSION
public static final String IMAGE_EXTENSION = ".jpg";
English
File extension of the generated XPDL image
Thai

ไฟล์นามสกุลของอิมเมจ XPDL ที่สร้างขึ้น

IMAGE_FOLDER
public static final String IMAGE_FOLDER = "app_xpdlImages";

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

Thai

ชื่อโฟลเดอร์ในโฟลเดอร์ wflow ซึ่งเก็บอิมเมจ XPDL ทั้งหมด

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

Prefix of the file name for the generated thumbnail image.

Thai

คำนำหน้าของชื่อไฟล์สำหรับภาพขนาดย่อที่สร้างขึ้น

THUMBNAIL_SIZE
public static final int THUMBNAIL_SIZE = 400;

Default size used to generate the thumbnail image. 

Thai

ขนาดเริ่มต้นที่ใช้ในการสร้างภาพขนาดย่อ

Methods

Thai

กระบวนการ

createThumbnail
public static void createThumbnail(java.lang.String path, java.lang.String processDefId)

...

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

Thai

สร้างภาพขนาดย่อของ XPDL

เลิกใช้สิ่งนี้ไม่ได้ใช้ใน v5 เนื่องจาก Workflow Designer ถูกแทนที่ด้วยเครื่องมือสร้างกระบวนการทางเว็บ

createXpdlImage
public static void createXpdlImage(java.lang.String designerwebBaseUrl, java.lang.String processDefId)

...

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

Thai

สร้างอิมเมจ XDPL

เลิกใช้สิ่งนี้ไม่ได้ใช้ใน v5 เนื่องจาก Workflow Designer ถูกแทนที่ด้วยเครื่องมือสร้างกระบวนการทางเว็บ

generateXpdlImage
public static void generateXpdlImage(final java.lang.String designerwebBaseUrl, final java.lang.String processDefId)

...

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

Thai

จัดคิวงานสำหรับการสร้างอิมเมจ XPDL

เลิกใช้สิ่งนี้ไม่ได้ใช้ใน v5 เนื่องจาก Workflow Designer ถูกแทนที่ด้วยเครื่องมือสร้างกระบวนการทางเว็บ

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

...

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

Thai

จัดคิวงานสำหรับการสร้างอิมเมจ XPDL

เลิกใช้สิ่งนี้ไม่ได้ใช้ใน v5 เนื่องจาก Workflow Designer ถูกแทนที่ด้วยเครื่องมือสร้างกระบวนการทางเว็บ

getXpdlImage
public static java.io.File getXpdlImage(java.lang.String designerwebBaseUrl, java.lang.String processDefId)

...

designerwebBaseUrl - is not used

Thai

รับอิมเมจ XPDL

พารามิเตอร์:

designerwebBaseUrl - ไม่ได้ใช้

getXpdlImagePath
public static java.lang.String getXpdlImagePath(java.lang.String processDefId)

Gets the XPDL image path in wflow/app_xpdlImages folder

Thai

รับเส้นทางรูปภาพ XPDL ในโฟลเดอร์ wflow / app_xpdlImages

getXpdlThumbnail
public static java.io.File getXpdlThumbnail(java.lang.String designerwebBaseUrl, java.lang.String processDefId)

...

designerwebBaseUrl - is not used

 

...

Thai

รับภาพขนาดย่อ XPDL

พารามิเตอร์:

designerwebBaseUrl - ไม่ได้ใช้