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
var cont = site.getContainer('dataLists'); | |
var list = cont.children[0]; |
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
var office = task.getVariableLocal('atw20_office'); | |
var site = siteService.getSite(office); |
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
<property name="atw20:office"> | |
<type>d:text</type> | |
</property> |
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
var site = siteService.getSite('Имя_сайта'); |
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
for each(document in bpm_package.children) { | |
newtitle = document.properties["cm:title"] + " (в обработке)"; | |
document.properties["cm:title"] = newtitle; | |
document.save(); | |
} |
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
if(task.getVariableLocal('atw20_reviewOutcome') == 'Approve') { | |
var newApprovedCount = atw20_approveCount + 1; | |
execution.setVariable('atw20_approveCount', newApprovedCount); | |
} | |
var userName = reviewer.properties.firstName + ' ' + reviewer.properties.lastName; | |
var comments = execution.getVariable('atw20_comments_global'); | |
var new_comment = new String( task.getVariableLocal('bpm_comment') ); | |
comments += ",{" + userName + "|" | |
+ task.getVariableLocal('atw20_reviewOutcome') | |
+ "|" + new_comment + "}"; |
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
var futureDate = new Date(); | |
futureDate.setDate(futureDate.getDate() + 7); | |
task.dueDate = futureDate; |
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
if (bpm_workflowDueDate != undefined) | |
task.dueDate = bpm_workflowDueDate; |
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
execution.setVariable('atw20_comments_global', ""); | |
execution.setVariable('atw20_approveCount', 0);> |