> ## Documentation Index
> Fetch the complete documentation index at: https://docs.abbyy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# SendForProcessing

> Konfigurieren Sie die Pega-Aktivität SendForProcessing für einen Case mit nur einem Dokument: Öffnen Sie den Case, durchlaufen Sie die Anhänge und rufen Sie FlexiCapture auf, um die Batch-Verarbeitung zu starten.

Weitere Informationen zum Erstellen von Aktivitäten finden Sie unter [Erstellen einer Pega-Aktivität](/de/flexi-capture/connectors/pega/pega-activity-create).

<div id="pages-classes">
  ## Seiten & Klassen
</div>

| **Seitenname** | **Klasse**           |
| -------------- | -------------------- |
| Case           | Work-                |
| Attachment     | Data-WorkAttach-File |
| AttachmentInfo | Data-WorkAttach-File |

<div id="parameters">
  ## Parameter
</div>

| **Name** | **Datentyp** | **Erforderlich** |
| -------- | ------------ | ---------------- |
| CaseId   | String       | Ja               |

<div id="local-variables">
  ## Lokale Variablen
</div>

| **Name**    | **Datentyp** |
| ----------- | ------------ |
| LinkedRefTo | String       |
| Id          | String       |
| Index       | String       |

<div id="steps">
  ## Schritte
</div>

Schritt 1:

**Methode**: Obj-Open-By-Handle.

**Step page**: Case.

**InstanceHandle**: Param.CaseId.

<Frame>
  <img src="https://mintcdn.com/abbyy/KEmWsO92hkr7eybZ/images/flexi-capture/connectors/Pega105.png?fit=max&auto=format&n=KEmWsO92hkr7eybZ&q=85&s=acd7b1240f492e29286b5f2f456d2286" alt="Screenshot von Schritt 1 in Pega mit der Methode Obj-Open-By-Handle, der Step-Seite Case und einem InstanceHandle von Param.CaseId." width="928" height="279" data-path="images/flexi-capture/connectors/Pega105.png" />
</Frame>

Schritt 2:

**Methode**: Property-Set.

| **PropertiesName** | **Eigenschaftswert** |
| ------------------ | -------------------- |
| Local.Index        | 0                    |

<Frame>
  <img src="https://mintcdn.com/abbyy/KEmWsO92hkr7eybZ/images/flexi-capture/connectors/Pega106.png?fit=max&auto=format&n=KEmWsO92hkr7eybZ&q=85&s=ba893bb18d8502f0c3db8817817c988c" alt="Screenshot von Schritt 2 in Pega, konfiguriert mit der Methode Property-Set, einem PropertiesName von Local.Index und einem PropertiesValue von 0." width="1116" height="206" data-path="images/flexi-capture/connectors/Pega106.png" />
</Frame>

Schritt 3:

**Methode**: Property-Set.

| **PropertiesName** | **Eigenschaftswert**                         |
| ------------------ | -------------------------------------------- |
| Local.LinkedRefTo  | Case.pyAttachments(\<CURRENT>).pxLinkedRefTo |
| Local.Id           | Case.pyAttachments(\<CURRENT>).pzInsKey      |

**Schleife**:

| **Wiederholen**                     | **Eigenschaft der Werteliste** |
| ----------------------------------- | ------------------------------ |
| Für jedes Element in der Werteliste | Case.pyAttachments             |

**Wenn**:

| **Wenn**       | **falls wahr**       | **Parameter bei true** | **bei false**        | **Parameter für „false“** |
| -------------- | -------------------- | ---------------------- | -------------------- | ------------------------- |
| Local.Index==0 | Mit Whens fortfahren |                        | Schritt überspringen |                           |

<Frame>
  <img src="https://mintcdn.com/abbyy/KEmWsO92hkr7eybZ/images/flexi-capture/connectors/Pega107.png?fit=max&auto=format&n=KEmWsO92hkr7eybZ&q=85&s=defbfa4362a621026a9ff6e1c23dfff5" alt="Screenshot von Schritt 3 in Pega mit der Methode Property-Set, bei dem Local.LinkedRefTo auf das pxLinkedRefTo des aktuellen Elements Case.pyAttachments und Local.Id auf dessen pzInsKey gesetzt ist." width="1120" height="238" data-path="images/flexi-capture/connectors/Pega107.png" />
</Frame>

<Frame>
  <img src="https://mintcdn.com/abbyy/KEmWsO92hkr7eybZ/images/flexi-capture/connectors/Pega108.png?fit=max&auto=format&n=KEmWsO92hkr7eybZ&q=85&s=dd14bd9d0c06edd5dbced9290efb887a" alt="Screenshot des Dialogfelds „Loop“ in Pega für Schritt 3, in dem „Repeat“ auf „For each element in value list“ und „Value List Property“ auf Case.pyAttachments gesetzt ist." width="470" height="169" data-path="images/flexi-capture/connectors/Pega108.png" />
</Frame>

<Frame>
  <img src="https://mintcdn.com/abbyy/KEmWsO92hkr7eybZ/images/flexi-capture/connectors/Pega109.png?fit=max&auto=format&n=KEmWsO92hkr7eybZ&q=85&s=4af0f2919dcb8e002014ed8ec0270bd2" alt="Screenshot des Dialogfelds „When-Bedingungen“ in Pega für Schritt 3, in dem die Bedingung Local.Index==0 bei „wahr“ auf „Continue Whens“ und bei „falsch“ auf „Skip Step“ gesetzt ist." width="1001" height="235" data-path="images/flexi-capture/connectors/Pega109.png" />
</Frame>

Teilschritt 1:

**Methode**: Obj-Open-By-Handle.

**Step page**: Attachment.

**InstanceHandle**: Local.LinkedRefTo

<Frame>
  <img src="https://mintcdn.com/abbyy/KEmWsO92hkr7eybZ/images/flexi-capture/connectors/Pega110.png?fit=max&auto=format&n=KEmWsO92hkr7eybZ&q=85&s=cc92e748bf9483196a8f369a0ed2b065" alt="Screenshot des ersten Teilschritts in Pega mit der Methode Obj-Open-By-Handle, der Step-Seite „Attachment“ und einem InstanceHandle von Local.LinkedRefTo." width="1098" height="310" data-path="images/flexi-capture/connectors/Pega110.png" />
</Frame>

Teilschritt 2:

**Methode**: Obj-Open-By-Handle.

**Step page**: AttachmentInfo.

**InstanceHandle**: Local.Id.

<Frame>
  <img src="https://mintcdn.com/abbyy/KEmWsO92hkr7eybZ/images/flexi-capture/connectors/Pega111.png?fit=max&auto=format&n=KEmWsO92hkr7eybZ&q=85&s=e64a8844bd880700afe9c831f93d7ca0" alt="Screenshot von Teilschritt 2 in Pega, konfiguriert mit der Methode Obj-Open-By-Handle, der Step-Page AttachmentInfo und einem InstanceHandle von Local.Id." width="1096" height="313" data-path="images/flexi-capture/connectors/Pega111.png" />
</Frame>

Teilschritt 3:

**Methode**: Call-Function.

| **Funktion**                                                               | **Rückgabewert** |
| -------------------------------------------------------------------------- | ---------------- |
| @ABBYY.SendForProcessing(AttachmentInfo.pyMemo, Attachment.pyAttachStream) | .BatchId         |

Weitere Informationen finden Sie unter [SendForProcessing](/de/flexi-capture/connectors/pega/pega-func-one-doc#sendforprocessing).

**Jump**:

| **Wenn**       | **falls wahr**                     | **Parameter bei true** | **bei false** | **Parameter für „false“** |
| -------------- | ---------------------------------- | ---------------------- | ------------- | ------------------------- |
| StepStatusFail | Zu einem späteren Schritt springen | ERR                    |               |                           |

**Bei Ausnahme zu späterem Schritt-Label springen**: ERR.

<Frame>
  <img src="https://mintcdn.com/abbyy/KEmWsO92hkr7eybZ/images/flexi-capture/connectors/Pega112.png?fit=max&auto=format&n=KEmWsO92hkr7eybZ&q=85&s=821342a9570521e6691c30f5f147f6b2" alt="Screenshot von Teilschritt 3 in Pega mit der Methode Call-Function, der Funktion @ABBYY.SendForProcessing(AttachmentInfo.pyMemo, Attachment.pyAttachStream) und dem Rückgabewert .BatchId." width="859" height="189" data-path="images/flexi-capture/connectors/Pega112.png" />
</Frame>

<Frame>
  <img src="https://mintcdn.com/abbyy/KEmWsO92hkr7eybZ/images/flexi-capture/connectors/Pega113.png?fit=max&auto=format&n=KEmWsO92hkr7eybZ&q=85&s=4add505d7eabcc578a43d5fa58d00fd7" alt="Screenshot der Jump-Bedingungen für Teilschritt 3 in Pega mit einer StepStatusFail-Bedingung, die bei Erfüllung zum späteren Step ERR springt, und der Bezeichnung ERR für den Ausnahmefall." width="998" height="279" data-path="images/flexi-capture/connectors/Pega113.png" />
</Frame>

Teilschritt 4:

**Methode**: Call-Function.

| **Function**                                      | **Rückgabewert** |
| ------------------------------------------------- | ---------------- |
| @ABBYY.WaitFirstVerificationOrProcessed(.BatchId) | .VerificationUrl |

Weitere Informationen finden Sie unter [WaitFirstVerificationOrProcessed](/de/flexi-capture/connectors/pega/pega-func-one-doc#waitfirstverificationorprocessed).

**Sprung**:

| **When**       | **if true**        | **true param** | **if false**       | **false param** |
| -------------- | ------------------ | -------------- | ------------------ | --------------- |
| StepStatusFail | Jump to Later Step | ERR            | Jump to Later Step | INC             |

**Bei einer Ausnahme zur Bezeichnung des späteren Schritts springen**: ERR

<Frame>
  <img src="https://mintcdn.com/abbyy/KEmWsO92hkr7eybZ/images/flexi-capture/connectors/Pega114.png?fit=max&auto=format&n=KEmWsO92hkr7eybZ&q=85&s=daf5a76f7855f2fdd079d94407995623" alt="Screenshot von Teilschritt 4 in Pega mit der Methode Call-Function, der Funktion @ABBYY.WaitFirstVerificationOrProcessed(.BatchId) und dem Rückgabewert .VerificationUrl." width="1083" height="235" data-path="images/flexi-capture/connectors/Pega114.png" />
</Frame>

<Frame>
  <img src="https://mintcdn.com/abbyy/KEmWsO92hkr7eybZ/images/flexi-capture/connectors/Pega115.png?fit=max&auto=format&n=KEmWsO92hkr7eybZ&q=85&s=764b540e078cd46fa1eecb32a45414dc" alt="Screenshot der Sprungbedingungen für Teilschritt 4 in Pega mit einer StepStatusFail-Bedingung, die bei true zum späteren Schritt ERR und bei false zu INC springt, sowie dem Label ERR für Ausnahmen." width="990" height="281" data-path="images/flexi-capture/connectors/Pega115.png" />
</Frame>

Teilschritt 5:

**Label**: ERR.

**Methode**: Page-Set-Messages.

**Nachricht**: @unescapeHTML(@getWorstMessageName(tools)).

Weitere Informationen finden Sie unter [unescapeHTML](/de/flexi-capture/connectors/pega/pega-func-other).

**Sprung**:

| **When** | **if true**   | **true param** | **if false** | **false param** |
| -------- | ------------- | -------------- | ------------ | --------------- |
| true     | Exit Activity |                |              |                 |

<Frame>
  <img src="https://mintcdn.com/abbyy/KEmWsO92hkr7eybZ/images/flexi-capture/connectors/Pega116.png?fit=max&auto=format&n=KEmWsO92hkr7eybZ&q=85&s=8225fc634ae551bd51dbbc6c1aeadbaf" alt="Screenshot von Teilschritt 5 in Pega mit dem Label ERR und der Methode Page-Set-Messages, wobei Message auf @unescapeHTML(@getWorstMessageName(tools)) festgelegt ist." width="1092" height="241" data-path="images/flexi-capture/connectors/Pega116.png" />
</Frame>

<Frame>
  <img src="https://mintcdn.com/abbyy/KEmWsO92hkr7eybZ/images/flexi-capture/connectors/Pega117.png?fit=max&auto=format&n=KEmWsO92hkr7eybZ&q=85&s=e61995d460bec6a0e6c570aac6e98328" alt="Screenshot der Sprungbedingungen für Teilschritt 5 in Pega mit dem When-Wert true, der die Aktivität beendet." width="931" height="256" data-path="images/flexi-capture/connectors/Pega117.png" />
</Frame>

Teilschritt 6:

**Label**: INC.

**Methode**: Property-Set.

| **PropertiesName** | **PropertiesValue** |
| ------------------ | ------------------- |
| Local.Index        | Local.Index+ 1      |

<Frame>
  <img src="https://mintcdn.com/abbyy/KEmWsO92hkr7eybZ/images/flexi-capture/connectors/Pega118.png?fit=max&auto=format&n=KEmWsO92hkr7eybZ&q=85&s=c00c72678eb35dc51d238503bb1c37ac" alt="Screenshot von Teilschritt 6 in Pega mit dem Label INC und der Methode Property-Set mit PropertiesName Local.Index und PropertiesValue Local.Index+ 1." width="1078" height="199" data-path="images/flexi-capture/connectors/Pega118.png" />
</Frame>
