Windchill_Workflow专用队列配置
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
为Windchill Workflow配置专用队列和后台方法服务器
1、概述:
本文档旨在说明如何为工作流配置多个队列,并为队列指定BackgroupServer.
2、参考与引用:
Windchill® Advanced Deployment Guide Windchill
WCPerformanceTuningGuide
3、工作流设置
工作流的设置很简单,只需要在属性中选择设置专用队列。
4、配置:
属性配置
方案一:
在site.xconf中增加如下三项:
<Property name="wt.workflow.engine.dedicatedQueueMode"overridable="true"
targetFile="codebase/wt.properties"
value="all"/>
<Property name="wt.workflow.engine.dedicatedQueue" overridable="true"
targetFile="codebase/wt.properties"
value="true"/>
<Property name="wt.queue.max.processQueues" overridable="true"
targetFile="codebase/wt.properties"
value="50"/>
说明:
wt.workflow.engine.dedicatedQueueMode
none ( 默认值) - 专用队列处理被禁用
userWork - 已启用专用队列处理标记的工作流模板的专用WfUserWorkQueue propagation - 已启用专用队列处理标记的工作流模板的专用WfPropagationQueue
all - 已启用专用队列处理标记的工作流模板的专用WfUserWorkQueue和专用WfPropagationQueue
通常这个值设置为All.
如果采用这种方案,在队列管理器里面会看到如下队列产生。
wt.queue. WfUserWorkQueue_1996315
wt.queue.WfPropagationQueue_1996315
每一个工作流模板会产生两个上面的队列。
也就是说这个两个队列专门为某一个队列专用。
方案二:
设置如下三个参数
erWorkPoolSize=5
wt.workflow.engine.propagationPoolSize=5
wt.queue.max.processQueues=50
wt.queue.max.processQueues>
erWorkPoolSize+wt.workflow.engine.propagationPoolSize
注意:如果设置上面两个参数,如上那系统默认会产生5数量的队列,在队列管理器里可以查看到型如:
WfSharedUserQueue0
WfSharedUserQueue1
WfSharedUserQueue2
WfSharedUserQueue3
WfSharedUserQueue4
wt.queue.WfSharedPropagationQueue0
wt.queue.WfSharedPropagationQueue1
wt.queue.WfSharedPropagationQueue2
wt.queue.WfSharedPropagationQueue3
wt.queue.WfSharedPropagationQueue4
上面5组队列为设置了专用属性的工作流,共享使用,系统会自动把工作流分配到这个几个队列里面去。
而不是像第一方式可以为某一个工作流设定一个队列。
队列属性配置
上面两种方式都可以为队列设置group属性。
如果使用第一种方案,那后缀相同的一组队列必须设置同样的组值。
如
wt.queue. WfUserWorkQueue_1996315
wt.queue.WfPropagationQueue_1996315
必须设置统一的组。
默认为default.
对于方案二可以如下配置
Set the following properties to assign the WfSharedPropagationQueues to queue
group0:
wt.queue.WfSharedPropagationQueue0=group0
wt.queue.WfSharedPropagationQueue1=group0
..
wt.queue.WfSharedPropagationQueue3=group0
wt.queue.WfSharedPropagationQueue4=group0
Set the following properties to assign WfSharedUserQueues to queue group1:
wt.queue.WfSharedUserQueue0=group1
wt.queue.WfSharedUserQueue1=group1
.
.
wt.queue.WfSharedUserQueue3=group1
wt.queue.WfSharedUserQueue4=group1
启动队列
为工作流模板设置了专用队列属性,第一次启动该工作流产生的队列默认为停止状态,必须手动启动相关队列。
为队列指定BackgroupServer
如果要为队列指定运行在那个BackgroupServer中,按照如下操作:
xconfmanager -s
’wt.manager.cmd.BackgroundMS_0=$(wt.manager.cmd.BackgroundMethodServer)’
’wt.manager.cmd.BackgroundMS_0Launcher=
$(wt.manager.cmd.BackgroundMethodServerLauncher)’
wt.manager.cmd.BackgroundMS_0.singleton.enforce=true
’wt.manager.cmd.BackgroundMS_0.param.4=$(wt.method.bg.maxHeap)’
’wt.manager.cmd.BackgroundMS_0.param.5=group0
所有组设置为group0的队列运行在BackgroundMS_0
xconfmanager -s
’wt.manager.cmd.BackgroundMS_1=$(wt.manager.cmd.BackgroundMethodServer)’
’wt.manager.cmd.Backgro undMS_1Launcher=
$(wt.manager.cmd.BackgroundMethodServerLauncher)’
3-6 Windchill Advanced Deployment Guide
wt.manager.cmd.BackgroundMS_1.singleton.enforce=true
’wt.manager.cmd.BackgroundMS_1.param.4=$(wt.method.bg.maxHeap)’
wt.manager.cmd.BackgroundMS_1.param.5=group1,default
所有组设置为group1和default的队列运行在BackgroundMS_1
5、注意事项:
使用导入导出方式导入工作流,在导入过程中工作流模板设置为专用队列属性会丢失。
必须checkout出来再次设置。