Loading
Feature Disruption - Service Cloud VoiceRead More
Feature degradation | Gmail Email delivery failureRead More
Visual Studio Code Based Modeler for Consumer Goods Cloud
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          Exit Handlers

          Exit Handlers

          Use an exit handler to validate a business object before it’s returned from a subprocess (child process) to a calling process (parent process). An exit handler appears at the end of a process contract or as a subelement of the View action and is used with actions of the View and Process action types.

          Example:

          <Process name="Visit::DetailsProcess" defaultAction="showVisitDetails" schemaVersion="0.0.0.5">
              <Entry>
                  <ProcessContext>
                      <Declarations>
                          <Declaration name="RetailStoreDetail" type="BoRetailStore" />
                          <Declaration name="Account" type="BoAccount" />
                      </Declarations>
                      <Parameters>
                          <Input name="BoVisit" type="BoVisit" />
                      </Parameters>
                  </ProcessContext>
                  <EntryActions>
                      <Action actionType="LOAD" name="LoadRetailStore" type="BoRetailStore">
                          <Parameters>
                              <Input name="pKey" value="ProcessContext::BoVisit.StoreId" />
                          </Parameters>
                          <Return name="ProcessContext::RetailStoreDetail" />
                      </Action>
                      <Action actionType="LOAD" name="LoadAccount" type="BoAccount">
                          <Parameters>
                              <Input name="pKey" value="ProcessContext::BoVisit.AccountId" />
                          </Parameters>
                          <Return name="ProcessContext::Account" />
                      </Action>
                  </EntryActions>
              </Entry>
              <Body>
                  <Actions>
                      <Action actionType="View" name="showVisitDetails">
                          <UIDescription>Visit::DetailsUI</UIDescription>
                      </Action>
                      <Action actionType="View" name="ShowDetail">
                          <UIDescription>Visit::DetailsUI</UIDescription>
                          <Events>
                              <Event name="editVisit" action="showRetailOverview" />
                          </Events>
                      </Action>
                      <Action actionType="View" name="showRetailOverview">
                          <UIDescription>Visit::RetailStoreCockpitUI</UIDescription>
                      </Action>
                  </Actions>
              </Body>
              <ExitHandlers>
                  <ExitHandler handlerName="beforeExit1" type="Validate" name="ProcessContext::BoVisit">
                      <OnValidationError transitionTo="showVisitDetails" />
                  </ExitHandler>
              </ExitHandlers>
          </Process>
          
           
          Loading
          Salesforce Help | Article