IBM Sterling B2B: Criando Usuários no B2Bi usando o XAPI

From Wiki


Procedimento

Criando um BP para invocar o XAPI

1) Abrir o console do B2Bi. Opção Business Process -> Manager, em Create clicar em Go.

3) Em Process Name:

  • Name: XAPI_CreateUser_Example01
  • Select an input mode for defining the new process: Business Process Text Editor

clique em Next

4) Em BPML Specification

  • Description: Create user using XAPI
  • Business Process:
<process name="XAPI_CreateUser_Example01">
<sequence name="Sequence Start">
<operation name="XAPI Service">
<participant name="XAPIService"/>
<output message="XAPIServiceTypeInputMessage">
<assign to="." from="*"></assign>
<assign to="api">createUserHierarchy</assign>
</output>
<input message="inmsg">
<assign to="." from="*"></assign>
</input>
</operation>
</sequence>
</process>
 

clique em Next

5) Em Process Levels, clique em Next

6) Em Deadline Settings, clique em Next

7) Em Life Span, clique em Next

8) Em Confirm, clique em Finish

Criando o XML para input dos dados

Crie o arquivo XAPI_createUser_input.xml para input dos dados:

<?xml version="1.0" encoding="UTF-8"?>
<User Activateflag="Y" BillingaddressKey="" BusinessKey=""
    ChangePassNext="" ContactaddressKey="" CreatorOrganizationKey=""
    DataSecurityGroupId="" DepartmentCode="" GeneratePassword=""
    Imagefile="" Localecode="en" Loginid="xapi_user01" Longdesc="" MenuId=""
    NoteKey="" OrganizationKey="" ParentUserKey="" Password="passw0rd"
    PasswordPolicyId="" PasswordPolicyKey="" PreferenceKey=""
    Pwdlastchangedon="" SessionTimeout="1800" SuperUser="" Theme=""
    UserKey="" Username="xapi_user01" Usertype="">
<ContactPersonInfo AddressLine1="" AddressLine2="" AddressLine3=""
    AddressLine4="" AddressLine5="" AddressLine6=""
    AlternateEmailID="" Beeper="" City="" Company="" Country=""
    DayFaxNo="" DayPhone="" Department="" EMailID="[email protected]" ErrorTxt=""
    EveningFaxNo="" EveningPhone="" FirstName="xapi_user01" HttpUrl=""
    IsCommercialAddress="" JobTitle="" LastName="xapi_user01" MiddleName=""
    MobilePhone="" OtherPhone="" PersonID="" PersonInfoKey=""
    PreferredShipAddress="" State="" Suffix="" TaxGeoCode=""
    Title="" UseCount="" VerificationStatus="" ZipCode=""/>
<BillingPersonInfo AddressLine1="" AddressLine2="" AddressLine3=""
    AddressLine4="" AddressLine5="" AddressLine6=""
    AlternateEmailID="" Beeper="" City="" Company="" Country=""
    DayFaxNo="" DayPhone="" Department="" EMailID="[email protected]" ErrorTxt=""
    EveningFaxNo="" EveningPhone="" FirstName="xapi_user01" HttpUrl=""
    IsCommercialAddress="" JobTitle="" LastName="xapi_user01" MiddleName=""
    MobilePhone="" OtherPhone="" PersonID="" PersonInfoKey=""
    PreferredShipAddress="" State="" Suffix="" TaxGeoCode=""
    Title="" UseCount="" VerificationStatus="" ZipCode=""/>
<QueueSubscriptionList>
     <QueueSubscription QueueKey="" QueueSubscriptionKey=""/>
</QueueSubscriptionList>
<ResourcePermissionList>
     <ResourcePermission ResourceKey="" Rights="" UserKey=""/>
</ResourcePermissionList>
<UserGroupLists>
     <UserGroupList UserGroupListKey="" UsergroupId="fg_operators" UsergroupKey="fg_operators"/>
</UserGroupLists>
</User>

Executar o BP XAPI_CreateUser_Example01

Execute o BP XAPI_CreateUser_Example01 e forneça o arquivo XPAI_createUser_input.xml com input.

1) Abrir o console do B2Bi. Opção Business Process -> Manager, em Search, informar XAPI clicar em Go.

2) Ao listar XAPI_CreateUser_Example01, clique em execution manager. Depois em execute.

3) Em Execute Business Process Input, informar:

  • Local Desktop filename: <fornecer o arquivo xml>
  • Run As User: fg_admin ou admin

e clique em Go.

Acompanhe se o BP finalizou com sucesso.

Verificando o usuário Criado

1) Abrir o console do B2Bi. Opção Accounts -> User Accounts, em Search, informar xapi clicar em Go.

2) Você também pode testar conectando ao filegateway

http://<hostname:ip>/filegateway

Ver também