ITIM二次开发:Workflow之JavaScriptExtension

ITIM:ibm tivoli identity manager IBM的一个身份管理产品

Workflow:ITIM内置的工作流,可以对用户信息、帐号信息做很多事情,我也还在研究中……

JavaScriptExtension:基于JavaScript与Java交互的事实际机制,可以像javascript一样操作,但实际是调用了后台的Java实现。

目标:用户状态改变时,通过Workflow修改第三方LADP注册库的用户状态~~ 有兴趣的同学欢迎深入交流

要点:
1、ITIM_HOME/data/scriptframework.properties 配置具体实现类
# List of extensions to load for each host component.  Each key must be unique,
# but each key may have multiple suffixes.  All keys start with ITIM.  The valid
# options for keys are: (以下10项是系统定义的,可以理解为它的作用范围)
#   PostOffice
#   ProvisioningPolicy
#   AccountTemplate
#   HostSelection
#   PersonPlacementRules
#   Workflow
#   Reminder
#   IdentityPolicy
#   Notification
#   OrphanAdoption

要添加自己的Class,用于Workflow可以这样配置:
ITIM.extension.Workflow.xxxx=class

Script ExtensionObject NameObject Type
AttributesExtension (deprecated)ATTRIBUTESMap
EmailContextExtensionEmailContextEmailContext
EnroleExtensionEnrole

error

Enrole
Error

IdentityPolicyExtensionIdentityPolicyIdentityPolicy
LoopCountExtensionloopcountint
PersonPlacementRulesExtensionentryMap
PostOfficeExtensionPostOfficePostOffice
ProvisioningPolicyExtension

parameters
reason

Map
int (0: New Account, 1: Existing Account)

AccountModelExtension

Account constructor
AccountSearch constructor

Account
AccountSearch

OrganizationModelExtensionContainerSearch constructorContainerSearch
PersonModelExtension

Person constructor
PersonSearch constructor

Person
PersonSearch

RoleModelExtension

Role constructor
RoleSearch constructor

Role
RoleSearch

ServiceModelExtension

Service constructor
ServiceSearch

Service
ServiceSearch

ReminderExtensionreminderCtxReminder
ServiceExtensionserviceDirectoryObject
SubjectExtensionsubjectPerson

Note: For Orphan Adoption Rule JavaScript,the subject is a Map which contains the account attributes returned from reconciliation.The entries in the map are referred by the name of the account attributes,which may vary based on the service type.

WorkflowExtension

process
activity
Participant constructor
ParticipantType
$RelevantDataName

Process
Activity
Participant
ParticipantType
ProcessData


2、继承ScriptExtension接口实现自己的类
3、要在WAS中添加类到ITIM的LIB目录,否则会说找不到类,即使你上传文件到Tim的LIB目录也是无效的。


转载于:https://my.oschina.net/scoder/blog/340510

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值