Description
Ajax POST to a specific URL
Parameters
Sample Code
var callback = {
success : function(response){
//do something
}
ConnectionManager.post('http://localhost/test', callback, 'id=2')
|
Description
Initiate Ajax call with JSONP
Parameters
Sample Code
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
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
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
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
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
AssignmentManager.logout('http://localhost/jw');
|
Description
Withdraw an assignment with a specific activity instance id
Parameters
Sample Code
AssignmentManager.withdrawAssignment('http://localhost/jw', '1_1_activity');
|
Description
Complete an assignment with a specific process instance id & activity instance id
Parameters
Sample Code
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
AssignmentManager.completeAssignmentWithVariable('http://localhost/jw', '1_1_activity', 'status=new&id=123', 'http://localhost/completed.jsp');
|
Description
Encoding URL with parameters
Parameters
Sample Code
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
getUrlParam('id')
|
will return 123, while
getUrlParam('page')
|
will return 2