1
0
-1

Hi! I have a product bundle as following:

{
"name": "Caracteristicas TDC y DDA",
"type": "",
"dynamicPreConditions": true,
"shareFormData": true,
"showPreviousForms": true,
"redirectNext": true,
"actions": [
{
"name": "Caracteristicas TDC",
"type": "Job Task Assign",
"preCondition": "$formDataMap.SeleccionoTDC == 'true'",
"redirectNext": true,
"properties": [
{ "name": "Task Assign Email", "value": "maill@mail.com" },
{ "name": "Task Input XML Prefill", "value": "$func.stepOrPreviousSubmissionXml()" },
{ "name": "Task Form Code", "value": "ao_caract_TDC" },
{ "name": "Task Message", "value": "Caracteristicas de TDC" },
{ "name": "Task Subject", "value": "Caracteristicas de TDC" },
{ "name": "Task Type", "value": "Anonymous" }
]
},
{
"name": "Caracteristicas DDA",
"type": "Job Task Assign",
"preCondition": "$formDataMap.SeleccionoDDA == 'true'",
"redirectNext": true,
"properties": [
{ "name": "Task Assign Email", "value": "maill@mail.com" },
{ "name": "Task Input XML Prefill", "value": "$func.stepOrPreviousSubmissionXml()" },
{ "name": "Task Form Code", "value": "ao_caract_DDA" },
{ "name": "Task Message", "value": "Caracteristicas de DDA" },
{ "name": "Task Subject", "value": "Caracteristicas de DDA" },
{ "name": "Task Type", "value": "Anonymous" }
]
},
{
"name": "Review Wait",
"type": "Job Task Wait"
}
],
"routes": [
{ "name": "Default", "nextStep": "Scan" }
]
}

Inside the Form XML I have the following 

  <SeleccionoDDA>true</SeleccionoDDA>
  <SeleccionoTDC>true</SeleccionoTDC>

And in the Extract Data from the previous form I include both fields.

The problem is that the collaboration job didn't continue with these steps if I leave the preCondition. I made a test I deleting the preCondition and it worked.

Is there is something I missed to configure ?

How can I know what is inside the $formDataMap?

Where can I see why I can't continue? I tried to search and there is no error messages.



  1. Larry Bunton

    Hi Fabiola,

    Can you please confirm that the previous submission contains the data extracts. Please see my response to this thread.

    Why expressions in Job controller aren´t evaluated ?

    Its not clear to me from the Job Definition if the previous submission is the start submission or if it belongs to a step 2 or 3 steps into the Job.

    By default the preconditions are evaluated against the start submission. If the previous submission isn't the start submission, its possible that the data extract fields are populated in the previous submission but are missing from the start submission. If this is the case the precondition may not fire.


    To fix this we will need to specify the correct submission step to be used for evaluating pre conditions, we do this by adding a step property "Pre Condition Submission Step". Please see the step properties array in bold below. Note the "Triage Step Name"  should be replaced with the actual step name that contains triage form submission.


    {
      "name": "Caracteristicas TDC y DDA",
      "type": "",
      "dynamicPreConditions": true,
      "shareFormData": true,
      "showPreviousForms": true,
      "redirectNext": true,
      "actions": [ ... ],
      "properties": [
        {"name": "Pre Condition Submission Step",
         "value" : "Triage Step Name"}
      ],
    "routes": [ ... ]
    }

    Cheers

    Larry Bunton

CommentAdd your comment...