You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

Description

  • org.joget.workflow.model.dao.WorkflowHelper
  • Under wflow-wfengine module
  • Helper methods required by workflow engine for processing during runtime e.g. plugins to execute for a tool, assignees for a participant, processing hash variables, etc.

Code Sample

import org.joget.apps.app.service.AppUtil;
import org.joget.workflow.model.dao.WorkflowHelper;
 
String appId = "crm";
 
WorkflowHelper workflowMapper = (WorkflowHelper) AppUtil.getApplicationContext().getBean("workflowHelper");
//Get the published process package version        
String currentVersion = workflowMapper.getPublishedPackageVersion(appId);

Methods

addAuditTrail
public void addAuditTrail(java.lang.String clazz, java.lang.String method, java.lang.String message)

Add an audit trail record and trigger audit trail event

addAuditTrail
public void addAuditTrail(java.lang.String clazz, java.lang.String method, java.lang.String message, java.lang.Class[] paramTypes, java.lang.Object[] args, java.lang.Object returnjava.lang.Object)

Add an audit trail record and trigger audit trail event

executeDeadlinePlugin
public org.joget.workflow.model.WorkflowDeadline executeDeadlinePlugin(java.lang.String processId, java.lang.String activityId, org.joget.workflow.model.WorkflowDeadline deadline, java.util.Date processStartedTime, java.util.Date activityAcceptedTime, java.util.Date activityActivatedTime)

Execute Deadline Plugin

executeTool
public boolean executeTool(org.joget.workflow.model.WorkflowAssignment assignment)

Execute a tool for a specific assignment.

getAssignmentUsers
public java.util.List<java.lang.String> getAssignmentUsers(java.lang.String packageId, java.lang.String procDefId, java.lang.String procId, java.lang.String version, java.lang.String actId, java.lang.String requesterUsername, java.lang.String participantId)

Retrieve a list of assignees for a participant in a process

getPublishedPackageVersion
public java.lang.String getPublishedPackageVersion(java.lang.String packageId)

Get published package version 

processHashVariable
public java.lang.String processHashVariable(java.lang.String content, org.joget.workflow.model.WorkflowAssignment wfAssignment, java.lang.String escapeFormat, java.util.Map<java.lang.String, java.lang.String> replaceMap)

Processes a string to parse hash variables

  • No labels