key: startProcess
type: process
startsFromExistingData: true
name: Start Elections
icon: person
mainTable: Candidates
summary:
  title: Elections
forms:
  fillForm:
    name: Start application
    title: Starting
    rows:
      - firstName
serviceTasks:
  requestExample:
    name: RequestExample
    type: httpRequest
    retries: 3
    method: POST
    url: http://example.com/myEndpoint/{{tableField.lastName}}
    query:
      a: any text
      b: "{{upload}}"
      d: "{{_secrets.mySecret}}"
      e: "{{_vars.initiator.id}}"
      f: A mix of anything {{_vars.initiator.email}} {{_secrets.abc}}
    headers:
      Authorization: Bearer {{_secrets.myToken}} {{identificationNumber}}
    body:
      myKey: myValue
      anotherKey: "{{_secrets.mySecret}}"
      fieldKey: "{{salary}}"
    mapping:
      _vars.response: "This is an invalid value {{query}}"
      agent.lastName: "this is an invalid variable {{_vars.9887Data}}"
      firstName: "This is an invalid value {{_secrets.anotherKey}}"
      lastName: "This is valid {{body.anotherKey}}"
      _vars.statusCode: "This is a valid value {{statusCode}}"
      _vars.expireDate: "This is a valid value {{headers}}"
      _vars.startProcess: "This is an invalid value {{missingField}}"
      _vars.endProcess: "This is a valid value {{_vars.initiator.data}}"
  dataSetterExample:
    name: data setter
    type: dataSetter
    mapping:
      _vars.status: "{{firstName}}"
      firstName: "{{_vars.1234Invalid}}"
      lastName: "{{lastName}}"
