새 사용자 정의 verb 구현

비즈니스 프로세스 및 휴먼 타스크를 모델링할 때 WebSphere Integration Developer에서 사용할 수 있도록 새 스태프 verb 및 스태프 지원 서비스 하부 구조를 추가하는 방법을 설명합니다.

새 스태프 verb 스펙을 WebSphere Integration Developer의 일부인 VerbSet.xml 파일에 추가해야 합니다. 예를 들어, 새 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>
새 verb를 LDAP 변환 파일의 dispatcher 섹션에 추가해야 합니다. 예를 들어 다음과 같습니다.
    <xsl:choose>
      ...
      <xsl:when test="$verb='Mentor of Employee'">
        <xsl:call-template name="MentorOfEmployee"/>
      ...
   </xsl:choose>
또한 맵핑을 구현하는 템플리트를 LDAP 변환 파일에 추가해야 합니다. 예:
<!-- 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 -->

맵핑에서 유효한 LDAP 조회를 생성하는지 확인하십시오.


ⓒ Copyright IBM Corporation 2005, 2006.
이 Information Center는 Eclipse 기술을 기반으로 합니다. (http://www.eclipse.org)