@@ -68,6 +68,79 @@ class ProcessMock extends BaseMock {
6868 } ) ;
6969 }
7070
71+ get200getProcessDefinitionStartForm ( ) {
72+ nock ( this . host , { 'encodedQueryParams' : true } )
73+ . get ( '/activiti-app/api/enterprise/process-definitions/testProcess%3A1%3A7504/start-form' )
74+ . reply ( 200 , {
75+ 'id' : 2002 ,
76+ 'processDefinitionId' : 'testProcess:1:7504' ,
77+ 'processDefinitionName' : 'test process' ,
78+ 'processDefinitionKey' : 'testProcess' ,
79+ 'tabs' : [ ] ,
80+ 'fields' : [ {
81+ 'fieldType' : 'DynamicTableRepresentation' ,
82+ 'id' : 'label' ,
83+ 'name' : 'Label' ,
84+ 'type' : 'dynamic-table' ,
85+ 'value' : null ,
86+ 'required' : false ,
87+ 'readOnly' : false ,
88+ 'overrideId' : false ,
89+ 'colspan' : 1 ,
90+ 'placeholder' : null ,
91+ 'minLength' : 0 ,
92+ 'maxLength' : 0 ,
93+ 'minValue' : null ,
94+ 'maxValue' : null ,
95+ 'regexPattern' : null ,
96+ 'optionType' : null ,
97+ 'hasEmptyValue' : null ,
98+ 'options' : null ,
99+ 'restUrl' : null ,
100+ 'restResponsePath' : null ,
101+ 'restIdProperty' : null ,
102+ 'restLabelProperty' : null ,
103+ 'tab' : null ,
104+ 'className' : null ,
105+ 'params' : { 'existingColspan' : 1 , 'maxColspan' : 1 } ,
106+ 'layout' : { 'row' : - 1 , 'column' : - 1 , 'colspan' : 2 } ,
107+ 'sizeX' : 2 ,
108+ 'sizeY' : 2 ,
109+ 'row' : - 1 ,
110+ 'col' : - 1 ,
111+ 'visibilityCondition' : null ,
112+ 'columnDefinitions' : [ {
113+ 'id' : 'user' ,
114+ 'name' : 'User' ,
115+ 'type' : 'Dropdown' ,
116+ 'value' : null ,
117+ 'optionType' : 'rest' ,
118+ 'options' : [ { 'id' : null , 'name' : 'Option 1' } ] ,
119+ 'restResponsePath' : null ,
120+ 'restUrl' : 'https://jsonplaceholder.typicode.com/users' ,
121+ 'restIdProperty' : 'id' ,
122+ 'restLabelProperty' : 'name' ,
123+ 'amountCurrency' : null ,
124+ 'amountEnableFractions' : false ,
125+ 'required' : true ,
126+ 'editable' : true ,
127+ 'sortable' : true ,
128+ 'visible' : true ,
129+ 'endpoint' : null ,
130+ 'requestHeaders' : null
131+ } ]
132+ } ] ,
133+ 'outcomes' : [ ] ,
134+ 'javascriptEvents' : [ ] ,
135+ 'className' : '' ,
136+ 'style' : '' ,
137+ 'customFieldTemplates' : { } ,
138+ 'metadata' : { } ,
139+ 'variables' : [ ] ,
140+ 'gridsterForm' : false
141+ } ) ;
142+ }
143+
71144}
72145
73146module . exports = ProcessMock ;
0 commit comments