Pallet Unbind
Introduction
PalletUnbindActivity is a pallet unbinding node used to release the binding relationship between a pallet and a product code. Upon successful unbinding, it returns the originally bound product code.
Configuration Items
| Property Name | Display Name | Type | Required | Default Value | Description |
|---|---|---|---|---|---|
| ForcedUnbind | Forced Unbind | bool | No | false | If the pallet is not bound to a product code, unbinding will be considered successful |
Business Logic
Execution Flow
Start
│
▼
Initialize result data items
│
▼
Get Pallet Code
│
├─► Empty → Set result=2, return
│
▼
Call Pallet Unbind Service
│
├─► Pallet does not exist → Set result=2
│
├─► Pallet not bound to product → Set result=2 (Non-forced mode)
│
└─► Unbind success → Set result=1, return product code
│
▼
End
Result Values
| Result Value | Description |
|---|---|
| 0 | Initial State |
| 1 | Unbind Success |
| 2 | Unbind Failure |
Flow Data Items
Input Data Items
| Data Item | Type | Description |
|---|---|---|
| ApplicationData | ProcessModel | Process Model |
| PalletUnbind_PalletCode_Value | string | Pallet Code |
Output Data Items
| Data Item | Type | Description |
|---|---|---|
| PalletUnbind_Result_Value | int | Unbind Result (0=Initial, 1=Success, 2=Failure) |
| PalletUnbind_Description_Value | string | Unbind Description |
| PalletUnbind_SerialNumber_Value | string | Unbound Product Code |
Usage Example
Basic Configuration
<PalletUnbindActivity Name="Unbind Pallet">
<ForcedUnbind>false</ForcedUnbind>
</PalletUnbindActivity>
Typical Flow Configuration
Read Pallet Code → Unbind Pallet → Get Product Code → Subsequent Processing
<VariableReadActivity Name="Read Pallet Code">
<Variable>PalletCode</Variable>
<Target>PalletUnbind_PalletCode_Value</Target>
</VariableReadActivity>
<PalletUnbindActivity Name="Unbind Pallet">
<ForcedUnbind>false</ForcedUnbind>
</PalletUnbindActivity>
<ConditionActivity Name="Unbind Result Judgment">
<Condition>Flow.DataItems["PalletUnbind_Result_Value"] == 1</Condition>
<TrueBranch>
<!-- Use unbound product code for subsequent processing -->
<VariableWriteActivity Name="Set Product Code">
<Variable>SerialNumber</Variable>
<Value>{Flow.DataItems["PalletUnbind_SerialNumber_Value"]}</Value>
</VariableWriteActivity>
</TrueBranch>
<FalseBranch>Exception Handling</FalseBranch>
</ConditionActivity>