package Ġio . hol unda . poly flow . view . mongo . process Ċ Ċ import Ġio . hol unda . poly flow . view . Process Definition Ċ import Ġio . hol unda . poly flow . view . mongo . process . Process Definition Document . Companion . COLLECTION Ċ import Ġorg . springframework . data . annotation . Id Ċ import Ġorg . springframework . data . annotation . Type Alias Ċ import Ġorg . springframework . data . mongodb . core . mapping . Document Ċ Ċ /** Ċ Ġ* ĠMongo Ġdocument Ġrepresenting Ġa Ġdeployed Ġprocess Ġdefinition . Ċ Ġ*/ Ċ @ Document ( collection Ġ= ĠCOL LECTION ) Ċ @ Type Alias (" process - definition ") Ċ data Ġclass ĠProcess Definition Document ( ĊĠ Ġ@ Id ĊĠ Ġval Ġprocess Definition Id : ĠString , ĊĠ Ġval Ġprocess Definition Key : ĠString , ĊĠ Ġval Ġprocess Definition Version : ĠInt , ĊĊĠ Ġval Ġapplication Name : ĠString , ĊĠ Ġval Ġprocess Name : ĠString , ĊĠ Ġval Ġprocess Version Tag : ĠString ? Ġ= Ġnull , ĊĠ Ġval Ġprocess Description : ĠString ? Ġ= Ġnull , ĊĠ Ġval Ġform Key : ĠString ? Ġ= Ġnull , ĊĠ Ġval Ġstart able From Task list : ĠBoolean Ġ= Ġtrue , ĊĠ Ġval Ġcandidate Starter Users : ĠSet < String > Ġ= Ġset Of (), ĊĠ Ġval Ġcandidate Starter Groups : ĠSet < String > Ġ= Ġset Of () Ċ ) Ġ{ ĊĊĠ Ġcompanion Ġobject Ġ{ ĊĠĠĠ Ġconst Ġval ĠCOL LECTION Ġ= Ġ" processes " ĊĠ Ġ} ĊĊĠ Ġ/** ĊĠĠ Ġ* ĠCreates Ġa Ġprojection Ġrepresentation Ġout Ġof Ġdocument . ĊĠĠ Ġ*/ ĊĠ Ġfun Ġto Process Definition (): ĠProcess Definition Ġ= ĊĠĠĠ ĠProcess Definition ( ĊĠĠĠĠĠ Ġprocess Definition Id Ġ= Ġthis . process Definition Id , ĊĠĠĠĠĠ Ġprocess Definition Key Ġ= Ġthis . process Definition Key , ĊĠĠĠĠĠ Ġprocess Definition Version Ġ= Ġprocess Definition Version , ĊĊĠĠĠĠĠ Ġapplication Name Ġ= Ġthis . application Name , ĊĠĠĠĠĠ Ġprocess Name Ġ= Ġthis . process Name , ĊĠĠĠĠĠ Ġprocess Version Tag Ġ= Ġthis . process Version Tag , ĊĠĠĠĠĠ Ġprocess Description Ġ= Ġthis . process Description , ĊĠĠĠĠĠ Ġform Key Ġ= Ġthis . form Key , ĊĠĠĠĠĠ Ġstart able From Task list Ġ= Ġthis . start able From Task list , ĊĠĠĠĠĠ Ġcandidate Starter Users Ġ= Ġthis . candidate Starter Users , ĊĠĠĠĠĠ Ġcandidate Starter Groups Ġ= Ġthis . candidate Starter Groups ĊĠĠĠ Ġ) Ċ Ċ } Ċ