How do we filter the candidate from RCM to Crossboarding process?

+1 vote
23 views
asked Feb 7, 2017 in Onboarding by surya6alluri (210 points)  


Hi All,

I have created a custom process for Crossboarding! and while I initiate onboarding in RCM, how can we filter this internal candidate to the crossboarding process in Onboarding?

1 Answer

+5 votes
answered Feb 8, 2017 by srivatsabh (2,780 points)  
selected Jun 21 by admin
 
Best answer
 
Hi Surya -  

With the creation of the custom process in SF-Onboarding, you should also identify your use case for the custom process i.e what field you will use to trigger the process. Refer the Onboarding guide section: "How to Import a New Hire to a Custom Process" with steps to add this field.

In your scenario, if the customer is using a crossboarding for internal hires, use the below sample code in your new hire XML.

Sample code:

<xsl:when test="./ID='InternalHire'">                
<xsl:if test="./Value = 'false'">                              
<xsl:call-template name="item">                                         
<xsl:with-param name="key">Process</xsl:with-param>                     
<xsl:with-param name="value">Onboarding</xsl:with-param>               
</xsl:call-template>               
</xsl:if>               
<xsl:if test="./Value = 'true'">                              
<xsl:call-template name="item">                                         
<xsl:with-param name="key">Process</xsl:with-param>                                             
<xsl:with-param name="value">CustomProcess (enter the name of the process that you have created)</xsl:with-param>                              
</xsl:call-template>               
</xsl:if> 
</xsl:when> 

To add this code navigate to  Super Admin Import/Export Settings HRXML.ImportNewHire Export File Submit.

Hope this helps. 

Regards
Srivatsa


commented Feb 9, 2017 by surya6alluri (210 points)  
Hi Srivatsa,

Thanks for the clarification, like you, mentioned in your answer - I'm already using a field in requisition 'Onboarding type' to filter the process for the other four processes I have, but for Crossboarding do I need to use the same field in requisition by adding some picklist values (or) I can create another field, lets say internal hire=yes/no. so that I can use that field to add it in the same code you have sent. In this case, there will be first field filtering all the processes and second to filter for Crossboarding....Is it possible?

Please look at the code I have used - could you please tell if this is right? Thanks in advance


<xsl:choose>
              <xsl:when test="/RCM2KMSDataExchange/Field[ID = 'OnboardingType'] and translate(normalize-space(/RCM2KMSDataExchange/Field[ID = 'OnboardingType']/Value/node()),$smallcase,$uppercase) = 'Onboarding Global'">
                <xsl:call-template name="item">
                  <xsl:with-param name="key">Process</xsl:with-param>
                  <xsl:with-param name="value">Onboarding-Global</xsl:with-param>
                </xsl:call-template>
              </xsl:when>
              <xsl:otherwise>
                <xsl:choose>
                  <xsl:when test="/RCM2KMSDataExchange/Field[ID = 'OnboardingType'] and translate(normalize-space(/RCM2KMSDataExchange/Field[ID = 'OnboardingType']/Value/node()),$smallcase,$uppercase) = ''Onboarding Contractors">
                    <xsl:call-template name="item">
                      <xsl:with-param name="key">Process</xsl:with-param>
                      <xsl:with-param name="value">Onboarding-Contractors</xsl:with-param>
                    </xsl:call-template>
                  </xsl:when>
                  <xsl:otherwise>
                    <xsl:choose>
                      <xsl:when test="/RCM2KMSDataExchange/Field[ID = 'OnboardingType'] and translate(normalize-space(/RCM2KMSDataExchange/Field[ID = 'OnboardingType']/Value/node()),$smallcase,$uppercase) = 'Onboarding UK'">
                        <xsl:call-template name="item">
                          <xsl:with-param name="key">Process</xsl:with-param>
                          <xsl:with-param name="value">Onboarding UK</xsl:with-param>
                        </xsl:call-template>
                      </xsl:when>
                      <xsl:otherwise>
                        <xsl:call-template name="item">
                          <xsl:with-param name="key">Process</xsl:with-param>
                          <xsl:with-param name="value">Onboarding</xsl:with-param>
                        </xsl:call-template>
                      </xsl:otherwise>
                    </xsl:choose>
                  </xsl:otherwise>
                </xsl:choose>
              </xsl:otherwise>
            </xsl:choose>
            <xsl:variable name="InternalHire" select="normalize-space(/RCM2KMSDataExchange/Field[ID = 'InternalHire']/Value)"/>
<xsl:if test="(./Value = 'US') and ($InternalHire = 'false')">
<xsl:call-template name="item">
<xsl:with-param name="key">Process</xsl:with-param>
<xsl:with-param name="value">Onboarding</xsl:with-param>
</xsl:call-template>
</xsl:if>
<xsl:if test="(./Value = 'US') and ($InternalHire = ‘true’)">
<xsl:call-template name="item">
<xsl:with-param name="key">Process</xsl:with-param>
<xsl:with-param name="value">Crossboarding</xsl:with-param>
</xsl:call-template>
</xsl:if>
commented Feb 9, 2017 by srivatsabh (2,780 points)  
Hi Surya - For internal hire, use the below code - Also make sure you have created the field ID under Settings -> Data dictionary .

<xsl:call-template name="item">
              <xsl:with-param name="key">Process</xsl:with-param>
              <xsl:with-param name="value">
                <xsl:choose>
                    <xsl:when test=" /RCM2KMSDataExchange/Field[ID='InternalHire']/Value/node() ='true'">Onboarding Internal Hires</xsl:when>
                    <xsl:otherwise>Onboarding</xsl:otherwise>
                </xsl:choose>

              </xsl:with-param>
            </xsl:call-template>

Refer the Onboarding Implementation guide for steps to add the field under data dictionary.
commented Feb 10, 2017 by surya6alluri (210 points)  
Thanks Srivatsa
Welcome to KnockSF

This is an exclusive community for SuccessFactors Consultants across the world.

Here you can ask questions and receive answers on any module of SuccessFactors from other members of the community.
Most active Members
this month:
    Gute Mathe-Fragen - Bestes Mathe-Forum
    ...