No outgoing sequence flow exclusive gateway - script task

I am working on script task, I am trying to validate the form fields.

      <bpmn:scriptTask id="check_validation" name="Check Validation" scriptFormat="groovy">
      <bpmn:incoming>SequenceFlow_03k6vjk</bpmn:incoming>
      <bpmn:outgoing>SequenceFlow_1ni4h0y</bpmn:outgoing>
      <bpmn:script><![CDATA[if(Email=='123') 
{
Application_Status= 'complete';
} 
else 
{
Application_Status ='incomplete';
}]]></bpmn:script>
    </bpmn:scriptTask>
    <bpmn:exclusiveGateway id="ExclusiveGateway_0xmpp76" name="Check">
      <bpmn:incoming>SequenceFlow_1ni4h0y</bpmn:incoming>
      <bpmn:outgoing>SequenceFlow_1nl2fqk</bpmn:outgoing>
      <bpmn:outgoing>SequenceFlow_13hgg4d</bpmn:outgoing>
    </bpmn:exclusiveGateway>
    <bpmn:sequenceFlow id="SequenceFlow_1nl2fqk" name="Yes" sourceRef="ExclusiveGateway_0xmpp76" targetRef="form_complete_check">
      <bpmn:conditionExpression xsi:type="bpmn:tFormalExpression"><![CDATA[${Application_Status=='complete'}]]></bpmn:conditionExpression>
    </bpmn:sequenceFlow>
    <bpmn:sequenceFlow id="SequenceFlow_13hgg4d" name="No" sourceRef="ExclusiveGateway_0xmpp76" targetRef="data_correction">
      <bpmn:conditionExpression xsi:type="bpmn:tFormalExpression"><![CDATA[${Application_Status=='incomplete'}]]></bpmn:conditionExpression>
    </bpmn:sequenceFlow>

Error

The process could not be started. : Cannot instantiate process definition mortgae_process:1:7083976f-a4ca-11e6-8420-0242ac110003: ENGINE-02004 No outgoing sequence flow for the element with id ‘ExclusiveGateway_0xmpp76’ could be selected for continuing the process.

can anyone help me what did I wrong?

update: I found groovy script not run but I don’t know why it does not get run

Can you please post your BPMN XML?

thanks @Niall

We need to set variable using execution.setVariable() after that it works fine

<bpmn:scriptTask id="check_validation" name="Check Validation" scriptFormat="groovy">
      <bpmn:incoming>SequenceFlow_03k6vjk</bpmn:incoming>
      <bpmn:outgoing>SequenceFlow_1ni4h0y</bpmn:outgoing>
      <bpmn:script><![CDATA[if(Email ==~ /[a-z_][a-z0-9_]+@[a-z0-9_.?]+.[a-z]{1,3}/) {
execution.setVariable('Application_Status', 'complete');
} 
else 
{
execution.setVariable('Application_Status','incomplete');
}]]></bpmn:script>
    </bpmn:scriptTask>
    <bpmn:exclusiveGateway id="ExclusiveGateway_0xmpp76" name="Check">
      <bpmn:incoming>SequenceFlow_1ni4h0y</bpmn:incoming>
      <bpmn:outgoing>SequenceFlow_1nl2fqk</bpmn:outgoing>
      <bpmn:outgoing>SequenceFlow_13hgg4d</bpmn:outgoing>
    </bpmn:exclusiveGateway>
    <bpmn:sequenceFlow id="SequenceFlow_1nl2fqk" name="Yes" sourceRef="ExclusiveGateway_0xmpp76" targetRef="form_complete_check">
      <bpmn:conditionExpression xsi:type="bpmn:tFormalExpression"><![CDATA[${Application_Status=='complete'}]]></bpmn:conditionExpression>
    </bpmn:sequenceFlow>
    <bpmn:sequenceFlow id="SequenceFlow_13hgg4d" name="No" sourceRef="ExclusiveGateway_0xmpp76" targetRef="data_correction">
      <bpmn:conditionExpression xsi:type="bpmn:tFormalExpression"><![CDATA[${Application_Status=='incomplete'}]]></bpmn:conditionExpression>