Implementing new custom verbs

This describes how to add new staff verbs the staff support service infrastructure so that they can be used in WebSphere Integration Developer when modeling business processes and human tasks.

You must add the new staff verb specification to the VerbSet.xml file which is part of your WebSphere Integration Developer installation. For example, for a new verb Mentor of Employee:
  <vs:DefineVerb name='Mentor of Employee'>
    <vs:Description>Assigns the mentor of an employee.
Supported by sample XSLT files for:
 - LDAP
    </vs:Description>
    <vs:Mandatory>
      <vs:Parameter>
        <vs:Name>EmployeeName</vs:Name>
        <vs:Type>xsd:string</vs:Type>
      </vs:Parameter>
    </vs:Mandatory>
    <vs:Optional>
      <vs:Parameter>
        <vs:Name>Domain</vs:Name>
        <vs:Type>xsd:string</vs:Type>
      </vs:Parameter>
    </vs:Optional>
  </vs:DefineVerb>
You must add the new verb to the dispatcher section of the LDAP transformation file. For example:
    <xsl:choose>
      ...
      <xsl:when test="$verb='Mentor of Employee'">
        <xsl:call-template name="MentorOfEmployee"/>
      ...
   </xsl:choose>
You must also add to the LDAP transformation file a template that implements the mapping. For example::
<!-- Begin template MentorOfEmployee -->
  <xsl:template name="MentorOfEmployee">
    <sldap:staffQueries>
      <xsl:attribute name="threshold">
        <xsl:value-of select="$Threshold"/>
      </xsl:attribute>

      <sldap:intermediateResult>
        <xsl:attribute name="name">mentorvariable</xsl:attribute>
        <sldap:user>
          <xsl:attribute name="dn">
            <xsl:value-of select="staff:parameter[@id='EmployeeName']"/>
          </xsl:attribute>
          <xsl:attribute name="attribute">mentor</xsl:attribute>
          <xsl:attribute name="objectclass">inetOrgPerson</xsl:attribute>
        </sldap:user>
      </sldap:intermediateResult>

      <sldap:user>
        <xsl:attribute name="dn">%mentorvariable%</xsl:attribute>
        <xsl:attribute name="attribute">uid</xsl:attribute>
        <xsl:attribute name="objectclass">inetOrgPerson</xsl:attribute>
      </sldap:user>
    </sldap:staffQueries>
  </xsl:template>
<!-- End template MentorOfEmployee -->

Verify that the mapping generates a valid LDAP specific query.


Terms of use |

Last updated: Tue Feb 21 17:47:12 2006

(c) Copyright IBM Corporation 2005.
This information center is powered by Eclipse technology (http://www.eclipse.org)