Versions Compared

Key

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

...

completeAssignmentWithVariable(baseUrl, activityId, variableData, redirect)

Description

Chinese
   

描述


Completes an assignment with a specific process instance id & activity instance id with option to set workflow variables

Chinese

使用特定流程实例标识和活动实例标识完成分配,并带有用于设置工作流程变量的选项


Parameters

Chinese

参数


    • baseUrl - base URL of Joget Workflow, e.g., 'http://localhost/jw'

      Chinese

      baseUrl - Joget Workflow的基本URL,例如   'http://localhost/jw'

    • activityId - activity instance id of the assignment to be completed

      Chinese

      activityId - 要完成的分配的活动实例标识

    • variableData - variables to be set. All variable name must prefix with "var_"

      Chinese

      variableData - 要设置的变量。所有变量名都必须以“var_”作为前缀

    • redirect - a URL to redirect to after the assignment is completed (optional)

      Chinese

      redirect - 分配完成后重定向到的URL(可选)

...

getCurrentUsername(baseUrl, callback)

Description

Chinese
   

描述


Gets the current logged in username in Joget Workflow

...

login(baseUrl, username, password, callback)

Description

Chinese
   

描述


Login the user in Joget Workflow

...

loginWithHash(baseUrl, username, hash, callback)

Description

Chinese
   

描述


Login the user with hash in Joget Workflow

...

logout(baseUrl)

Description

Chinese
   

描述


Logs out the current logged in username in Joget Workflow

...

withdrawAssignment(baseUrl, activityId)

Description

Chinese
   

描述


Withdraws an assignment with a specific activity instance id

...

ajaxJsonp(url, callback, params)

Description

Chinese
   

描述


Initiates Ajax call with JSONP

...

get(url, callback, params, xss)

Description

Chinese
   

描述


Initiates Ajax GET to a specific URL

...

post(url, callback, params)

Description

Chinese
   

描述


Initiates Ajax POST to a specific URL

...

getField(fieldId)

Description

Chinese
   

描述


Used to gets the field object of a form field

...

getFieldsAsUrlQueryString(fields)

Description

Chinese
   

描述


Used to generates the fields value as url query parameter string

...

getGridCells(cellFieldId)

Description

Chinese
   

描述


Used to gets the cell objects of every rows of a grid field

...

getGridCellValues(cellFieldId)

Description

Chinese
   

描述


Used to gets the cell values of every rows of a grid field and return it in an array.

...

getValue(fieldId)

Description

Chinese
   

描述


Used to gets the value of a form field. 

...

getValues(fieldId)

Description

Chinese
   

描述


Used to gets the values of a form field. Values will return in an array. 

...

create(id, title, width, height)

Description

Chinese
   

描述


Used to creates a popup dialog element.

...

show(id, url, params, title, width, height, action)

Description

Chinese
   

描述


Used to creates a popup dialog element.

...

adjustPopUpDialog(dialogbox)

Description

Chinese
   

描述


Used by system to align the popup dialog to the center of the screen.

...

escapeHTML(content)

Description

Chinese
   

描述


Used to escapes HTML syntax in a value

...

getPopUpHeight(height)

Description

Chinese
   

描述


Used by the system to calculate the height of a popup dialog for current screen size to support mobile device.

...

getPopUpWidth(width)

Description

Chinese
   

描述


Used by the system to calculate the width of a popup dialog for current screen size to support mobile device.

...

userviewThemeParams()

Description

Chinese
   

描述


Used by system to gets the query parameters string that contains the meta of current userview theme in used.

...

constructUrlQueryString(params)

Description

Chinese
   

描述


Used to generate a query string based on a parameters object

...

Code Block
languagejs
var params = {
    "name" : ["joget"],
    "email" : ["info@joget.org", "test@joget.org"]
};
var queryString = UrlUtil.constructUrlQueryString(params);
console.log(queryString); // name=joget&email=info%40joget%2Eorg&email=test%40joget%2Eorg

encodeUrlParam(url)

Description

Chinese
   

描述


Used to encodes the URL parameters in a URL.

...

getUrlParams(url)

Description

Chinese
   

描述


Used to gets an object contains all parameter as attribute name and its value in an URL. 

...