This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<type name="alvexcourse:approveTask"> | |
<parent>bpm:workflowTask</parent> | |
</type> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<type name="alvexcourse:approveTask"> | |
<!-- Parent changed from bpm:workflowTask to bpm:activitiOutcomeTask --> | |
<parent>bpm:activitiOutcomeTask</parent> | |
<!-- Custom property with constraint that defines possible outcome options --> | |
<properties> | |
<property name="alvexcourse:okOutcome"> | |
<type>d:text</type> | |
<default>OK</default> | |
<constraints> | |
<constraint type="LIST" name="alvexcourse:okOutcomeConstraint"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
workflowtask.outcome.OK = Document approved |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// model.data will contain the data to be used for our report | |
model.data = []; | |
// Get managees of current user | |
var managees = orgchart.getPerson( person.properties.userName ).managees; | |
// Loop through all managees | |
for each(var user in managees) | |
{ | |
// Find how many nodes in repository each managee has created |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Create the list of available users and push it into model | |
// UI control will be created automatically | |
var userConstraint = []; | |
// Loop through managees and add them all to constraint | |
for each( user in managees ) | |
{ | |
// 'Label' is what user will see in user interface, 'value' is what will be passed to report script | |
userConstraint.push( { "label": user.firstName + ' ' + user.lastName, "value": user.userName } ); | |
} | |
// UI config is stored here |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Get user list from request parameter | |
var reqUsers = args['user'].split(','); | |
var users = []; | |
// Loop through complete list of managees | |
for each(var user in managees ) | |
{ | |
// Check if we are to include this managee into report or not | |
for each( ruser in reqUsers ) | |
{ | |
// We need this user, if he/she was specified in request parameters or if request asks for 'any user' |
OlderNewer