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 |
---|
Description
Ajax POST to a specific URL
Parameters
Sample Code
Code Block |
---|
var callback = { success : function(response){ //do something } ConnectionManager.post('http://localhost/test', callback, 'id=2') |
Description
Initiate Ajax call with JSONP
Parameters
Sample Code
Code Block |
---|
var callback = { success : function(response){ //do something } } ConnectionManager.ajaxJsonp('http://localhost/test', callback, 'id=4') |
Description
Ajax GET to a specific URL
Parameters
Sample Code
Code Block |
---|
var callback = { success : function(response){ //do something } } ConnectionManager.get('http://localhost/test', callback, 'id=6') |
Description
Get the current logged in username in Joget Workflow
Parameters
Sample Code
Code Block |
---|
var callback = { success : function(response){ //response.username } } AssignmentManager.getCurrentUsername('http://localhost/jw', callback); |
Description
Login / Single Sign On (SSO) to Joget Workflow with username & password
Parameters
Sample Code
Code Block |
---|
var callback = { success : function(response){ //do something } } AssignmentManager.login('http://localhost/jw', 'admin', 'admin', callback); |
Description
Login / Single Sign On (SSO) to Joget Workflow with username & hashed password
Parameters
Sample Code
Code Block |
---|
var callback = { success : function(response){ //do something } } AssignmentManager.login('http://localhost/jw', 'admin', '14ACD782DCFEB2BCDE2B271CCD559477', callback); |
Description
Logout the user in Joget Workflow
Parameters
Sample Code
Code Block |
---|
AssignmentManager.logout('http://localhost/jw'); |
Description
Withdraw an assignment with a specific activity instance id
Parameters
Sample Code
Code Block |
---|
AssignmentManager.withdrawAssignment('http://localhost/jw', '1_1_activity'); |
Description
Complete an assignment with a specific process instance id & activity instance id
Parameters
Sample Code
Code Block |
---|
AssignmentManager.completeAssignment('http://localhost/jw', '1_1_activity', 'http://localhost/completed.jsp'); |
Description
Complete an assignment with a specific process instance id & activity instance id
Parameters
Sample Code
Code Block |
---|
AssignmentManager.completeAssignmentWithVariable('http://localhost/jw', '1_1_activity', 'status=new&id=123', 'http://localhost/completed.jsp'); |
Description
Encoding URL with parameters
Parameters
Sample Code
Code Block |
---|
UrlUtil.encodeUrlParam('http://localhost/test?id=123#4#5678&status=abc efg'); |
Description
Get the value of a URL parameter
Parameters
Sample Code
If the current URL is
Code Block |
---|
getUrlParam('id') |
will return 123, while
Code Block |
---|
getUrlParam('page') |
will return 2