2017-03-27 2 views
1

나머지를 통해 프로세스 시작 변수를 얻으려고하고 있지만 시작 변수를받을 수 없습니다.프로세스 시작 변수를 가져올 수 없습니다.

는 내가하려고하면 :

{} 

어떻게 얻을 수있는 공정 변수를 시작

http://192.168.30.1:8080/engine-rest/process-definition/key/invoice/form-variables 

나는 단지이있어?

답변

2

리소스가 Get Start Form Variables이면 Generated Start Forms 만 지원됩니다.

인보이스 프로세스에는 Embedded Start Form이 사용됩니다. 인보이스 프로세스의 시작 이벤트는 시작 양식을 렌더링하는 데 사용되는 외부 HTML 파일을 참조합니다.

here 참조 :

<startEvent id="start"> 
    <extensionElements> 
    <camunda:formData> 
     <camunda:formField id="stringField" label="String Field" type="string" defaultValue="someString"> 
     <camunda:validation> 
      <camunda:constraint name="maxlength" config="10" /> 
      <camunda:constraint name="minlength" config="5" /> 
     </camunda:validation> 
     </camunda:formField> 
     <camunda:formField id="longField" label="Long Field" type="long" defaultValue="5"> 
     <camunda:validation> 
      <camunda:constraint name="max" config="10" /> 
      <camunda:constraint name="min" config="3" /> 
     </camunda:validation> 
     </camunda:formField> 
     <camunda:formField id="customField" label="Custom Field" type="string"> 
     <camunda:validation> 
      <camunda:constraint name="validator" config="org.camunda.bpm.engine.test.api.form.CustomValidator" /> 
     </camunda:validation> 
     </camunda:formField> 
     <camunda:formField id="dateField" label="Date Field" type="date" defaultValue="10/01/2013" /> 
    </camunda:formData> 
    </extensionElements> 
</startEvent> 

가 전체에 대한 here를 참조하십시오

<startEvent id="StartEvent_1" name="Invoice&#10;received" camunda:formKey="embedded:app:forms/start-form.html"> 
    <outgoing>SequenceFlow_1</outgoing> 
</startEvent> 

당신이 시작 폼 변수를 수신 할 경우, 프로세스의 시작 이벤트는 다음 예제와 유사해야합니다 예제 프로세스. 이 경우 FormService는 양식 변수를 분석 할 수 있으며 요청은 정의 된 변수를 반환합니다.

관련 문제