Opportunity Sharing External Create
This Opportunity Sharing External Create workflow process is shown in the following diagram.

As shown in this diagram, the following events happen when this workflow is called:
-
Create Source Key. This event generates an internal key from the process property internal key description. Currently, internal key description has a default value. This value can be changed manually or passed in from any workflow that calls this workflow as a subprocess.
-
Query ANI Keymap. This event searches for a transfer record for this opportunity in ANI Keymap, the buscomp that stores all the transfer information.
-
ANI Keymap Record Exist. This event checks to see if the number of transfer records for this opportunity is greater than zero, that is, whether a transfer record already exists for this opportunity.
-
Insert Value into Keymap. If a transfer record for this opportunity does not already exist, this event creates a new transfer record for this opportunity.
-
Update Value in Keymap. If a transfer record for this opportunity already exists, this event updates the transfer status to Transfer In Progress.
-
Create Siebel Message. This event calls the Opportunity Sharing Build Siebel message, passing in the internal key, internal key description, partner ID, and object ID, and returns a Siebel message.
-
Get Rid of Extra Message Layer. This event removes the extra layer that is added to a Siebel message when it is passed up from a subprocess.
-
Output Siebel Message. This event checks to see if the value of the process property Write Orig File is Y or N.
-
Find Port. This event finds the Web service port for the partner to whom the opportunity is being sent.
-
Transfer. This event sends the opportunity to the other system.
-
Update Status to Failed. If the transfer step returns an exception, this event updates the transfer status of the opportunity to Transfer Unsuccessful.
-
Write Response. This event checks to see if the value of the process property Write Response to File is Y or N.
-
Write Siebel Message. If Write Orig File is Y, this event writes the pretransfer Siebel message to an XML file. If Write Response to File is Y, this event writes the post-transfer Siebel message to an XML file.
-
Receive Create Response. This event calls the subprocess Oppty Sharing Receive Create Response, passing it the Siebel message received from the transfer.