|
Using these APIs, you can update the actual status of the object imports, or data that is exchanged, in an ERP/MES system in Windchill.
The data delivered by the ESI/ERPConnector solution to the target system is automatically acknowledged because, by default the Yes in Windchill.
> > > preference is set to When the No, the ESI transaction status is displayed as Pending until the Release To Manufacturing workflow receives a confirmation of the publication status from the external system. Using these APIs, you can update the status based on how the data is imported or consumed in an ERP/MES system, and the ESI transaction is updated accordingly.
> > > preference is set to In the case of a failure, the Release To Manufacturing workflow enables you to resolve the errors or data anomalies, and to resume the export until the source and target systems are synchronized.
|
|
• In Windchill, a transaction is successfully published with its status as Succeeded when the status of each subtransaction passed in the PostResultForTransactionAndSubtransaction action is updated as Succeeded.
• When the status of each subtransaction is passed as true in the PostResultForTransactionAndSubtransaction action, the request updates the status of the transaction as Succeeded and the transaction is successfully published. If the status of any one subtransaction is passed as false, the request updates the status of the transaction as Failed.
|
Attribute
|
Description
|
TransactionID
|
Required. The transaction ID for this action.
|
Message
|
Optional. The message that indicates the reason for the Succeeded or Failed status for the specified transaction ID.
|
PrimaryBuisnessObjectID
|
Required. The primary business object ID for this action. This attribute is required for updating the status of the specified transaction.
|
ReleaseResult
|
Required. Array of the subtransactions to be updated.
|
Successful
|
Required. Publication status of the subtransaction. You can specify the value as true or false. Default is false.
To update the publication status of the subtransaction as Succeeded in Windchill, specify the value as true. To update the status of the subtransaction as Failed, specify the value as false.
|
ObjectDescription
|
Optional. Description of the object in the subtransaction; it should preferably be the object number.
|
Action
|
Required. You can specify the value as Create, Change, or Delete. The value is case-insensitive.
|
ObjectID
|
Required. The OID of the persistable Windchill object that was released.
|
TargetID
|
Required. The ID of the distribution target that the Windchill object was released to; it uniquely identifies the target system and the organization destination.
|
Class
|
Required. The type of object that the RPC is associated with (for example, com.ptc.windchill.esi.BOMHeader). For details on class values, see “ESI Response Meta Information File” specified on the target.
|
Message
|
Optional. The message that indicates the reason for the Succeeded or Failed status for the subtransaction.
|
|
To successfully update the status of a transaction as Succeeded, the value of the Successful attribute for each subtransaction passed in the PostResultForTransactionAndSubtransaction action must be true.
|