Opportunity Sharing Siebel Query
The Opportunity Sharing Siebel Query workflow process is shown in the following diagram.

As shown in this diagram, the following events happen when this workflow is called:
-
Get Internal Key. This event finds the value of the internal key in the Siebel message and returns it.
-
Get Internal Desc. This event finds the internal key description in the Siebel message and returns it.
-
Parse Key. This event takes in internal key and internal key description and creates a search specification.
-
Get Opportunity. This event searches for the opportunity using the search specification.
-
Opportunity Exists. This event checks to see if the number of opportunities found by the query is greater than zero to determine if the opportunity already exists.
-
Add Error Status. If the opportunity does not exist, this event sets the transfer status in the Siebel message to an error status.
-
Add Error Message. If the opportunity does not exist, this event sets the transfer status message in the Siebel message to an error status message.
-
Set Update Status and Create Siebel Message. This event calls Opportunity Sharing Set Update Status, passing it the opportunity ID.
-
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.