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 office site name and container with registries, change the name of the site to yours | |
var site = siteService.getSite('office'); | |
var cont = site.getContainer('dataLists'); | |
// Print titles for all registries | |
for each( list in cont.children ) | |
print( list.properties.title ); |
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 office site name and container with registries, change the name of the site to yours | |
var site = siteService.getSite('office'); | |
var cont = site.getContainer('dataLists'); | |
// Specify source registry (srcList) and target registry (dstList), select the number of the registry looking at the output of the last script (numbering starts with 0) | |
var srcList = cont.children[0]; | |
var dstList = cont.children[1]; | |
// Print selected registries names. srcList is a registry of alvexdt:agreement type, dstList is a registry of alvexcourse_docs:document_partner_agreement type | |
print( "Source: " + srcList.properties.title ); |
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 office site name and container with registries, change the name of the site to yours | |
var site = siteService.getSite('office'); | |
var cont = site.getContainer('dataLists'); | |
// Specify source registry (srcList) and target registry (dstList), select the number of the registry looking at the output of the last script (numbering starts with 0) | |
var srcList = cont.children[0]; | |
var dstList = cont.children[1]; | |
// Copy all documents from srcList to dstList | |
for each( item in srcList.children ) |
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"> | |
<!-- Заменяем родителя нашего типа задачи с bpm:workflowTask на bpm:activitiOutcomeTask --> | |
<parent>bpm:activitiOutcomeTask</parent> | |
<!-- Создаем новое свойство, накладывая на него ограничение со списком допустимых результатов выполнения задачи --> | |
<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 |
OlderNewer