...
- url - URL to POST
- callback - a callback function after the a successful POST is succeeded (optional)
- params - parameters for the POST (optional)
...
- url - URL to initiate Ajax call
- callback - a callback function after the a successful call is succeeded (optional)
- params - parameters for the call (optional)
...
- url - URL to GET
- callback - a callback function after the a successful GET is succeeded (optional)
- params - parameters for the GET (optional)
- xss - use when the URL is cross-domain (optional)
...
- baseUrl - base URL of Joget Workflow, eg. 'http://localhost/jw'
- callback - a callback function after the a successful call is succeeded (optional)
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 the username & password
Parameters
- baseUrl - base URL of Joget Workflow, ege.g., 'http://localhost/jw'
- username - username of the for user to login
- password - password of the for user to login
- callback - a callback function after the a successful login is succeeded (optional)
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 the username & hashed password.
Parameters
- baseUrl - base URL of Joget Workflow, ege.g., 'http://localhost/jw'
- username - username of the for user to login
- hash - hashed password (refer to Hashed Password)
- callback - a callback function after the a successful login is succeeded (optional)
Sample Code
Code Block |
---|
var callback = {
success : function(response){
//do something
}
}
AssignmentManager.login('http://localhost/jw', 'admin', '14ACD782DCFEB2BCDE2B271CCD559477', callback);
|
...
- baseUrl - base URL of Joget Workflow, ege.g., 'http://localhost/jw'
Sample Code
...
- baseUrl - base URL of Joget Workflow, ege.g., 'http://localhost/jw'
- activityId - activity instance id of the assignment to withdrawbe withdrawn
Sample Code
Code Block |
---|
AssignmentManager.withdrawAssignment('http://localhost/jw', '1_1_activity');
|
...
- baseUrl - base URL of Joget Workflow, ege.g., 'http://localhost/jw'
- activityId - activity instance id of the assignment to completebe completed
- redirect - an a URL to redirect to after the assignment is completed (optional)
...
- baseUrl - base URL of Joget Workflow, ege.g., 'http://localhost/jw'
- activityId - activity instance id of the assignment to completebe completed
- variableData - Joget Workflow variable data to update be updated for the assignment
- redirect - an a URL to redirect to after the assignment is completed (optional)
...
UrlUtil.encodeUrlParam(url)
Description
Encoding url URL with parameters
Parameters
- url - url URL to be encodeencoded
Sample Code
Code Block |
---|
UrlUtil.encodeUrlParam('http://localhost/test?id=123#4#5678&status=abc efg');
|
...