0% found this document useful (0 votes)
31 views4 pages

MQL命令

Uploaded by

Ken white
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
31 views4 pages

MQL命令

Uploaded by

Ken white
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 4

导入

set cont user creator;


tcl;
cd c:/schema_custom
exit;
exec prog emxSpinnerAgent.tcl force; //force 代表强制执行

exec prog emxSpinnerAgent.tcl c:/schema_custom; 导入


exec prog emxSpinnerAgent.tcl c:/schema_custom force;

exec prog emxExtractSchema.tcl policy "PMCMyDesk"; 导出

exec prog emxExtractObjectsRels.tcl "eService Trigger Program Parameters" Relations


hipMemberModifyAttributeAction; 导出所有 Trigger

print connection 37977.1307.22340.58883 select from.name to.name; 根据 relationship


关系 id 查询 from 端对象的 name To 端的 name

print bus "ENV FDD Person" haipeng.yao2 - select attribute.value 查询对象的属性值

print bus "ENV FDD Person" haipeng.yao2 - selectable attribute.value 查询对象所有能


被选择的信息

temp query "ENV FDD Person" haipeng.yao2 - selectable attribute.value 模糊查询对象


所有能被选择的信息

mod bus ECO ECO2010003 - current Review; 改变对象状态

print relationship "关系" ;查看关系中的 attribute to 端和 from 端

/*
add bus type name revision policy policyName valut "eService Production"
attributeName attributeValue attributeName attributeValue 可跟 N 多属性;
*/

query connection type "ENV CN Affected Item" select to.name from.name 根据关系类型找
对象

expand bus "对象 id" 查询此对象用哪些关系关联了哪些 type


-
exec prog ENVenovia2DLKComService -method getSelectMBOM; 手动执行方法

from 端查 To 端 条件是 false ,true

print bus 37977.1307.5184.58485 select to[GBOM].from.id; 查某个对象某个关系 某端的对


象信息

删除 menu setting 的 mql


mod menu "PMCMyDesk" remove setting "Licensed Product";
删除 type 的属性
mod type "type 名称" remove attribute "属性名称"

添加 menu setting 的 mql


mod menu "menu 名称" add setting "key 名称" "value 值"

配置定时任务
schedul Task 目录 -> webapps ->enovia->WEB-INF->web.xml

配置定时任务日志
schedul Task 目录 -> webapps ->enovia->WEB-INF->class->log4j.properties

打印输出信息
print menu "名称";PMCMyDesk

top.refreshTablePage(); 删除后刷新的 js 代码

demote 降级 promote 升级

System Transition Manager


System Conversion Manager
Shadow Agent
Access Grantor

35 13

temp query bus "ENV Change CandidateLine" * * where 'attribute[ENV Requested


Change] == "Modify" && to[ENV Change CCL].from.type == "ENV DCO"' select to[ENV
Change CCL].from.name;

mod command ENVPartMarkDelete add setting "Access Expression" "(current == Create


&& owner == context.user)";
mod command ENVMMOAddExistObject add setting "Access Expression"
"(current.access[modify] == true) && (current.access[fromconnect] == true)";

add connection RFLVPMLogicalInstance from ENVTBBLogical TBB-ROT-001 C to


ENVTBBLogicalPlanning TBBPlanning-001 A;

mod portal "CBBSystemArchitecture" remove channel "CBBSystemArchitectureChannel";

connect bus "ENVTBBLogical" TBB-TOW-001 A rel RFLVPMLogicalInstance to


"ENVTBBLogicalPlanning" TBB 规划版本-C001 A organization ENVISION project Default;

print bus TBB 规划版本 ID select from[reltype].torel.id

mod bus 27085.55170.62301.12352 current RELEASED

mod command "FTRDeleteVariabilityActionLink" add user "Product Planner" 给 command


添加 user

localStringList.add("torel.to.id"); to 端对象是一个关系获取关系 id
window.top.location.href = window.top.location.href;
window.top.opener.location.href = window.top.opener.location.href;
window.top.opener.opener.location.href = window.top.opener.opener.location.href;

start searchindex mode partial; 增量索引

mod policy "Product" add state "Complete" before Obsolete version false promote
false checkouthistory true minorrevision true majorrevision true published false
notenforcereserveaccess; //修改生命周期位置
mod policy 'Product' remove state Complete;

add bus "ENVTBBLogical" "TBB-TOW-hhh" "A.1" policy "ENVLogical_Definition" project


ENVGLOBAL Organization ENVISIONENERGY

cp -fr /data/git/plm21x-wt/schema_custom_3de/* /data/schema_custom //代码部署

cp -fr /data/git/plm21x-wt/enovia_custom_3de/* /data/webapps/3dspace //代码部署

revisi bus 27085.55170.46217.13977 Major

print connection 27085.55170.9648.53888 select tomid[ENVPlanningVariant].from.id


dump , //根据 to 段关系 id 去找 from 段 对象 id

https://plm-wt-uat.envisioncn.com/federated/search?query=MMO* //federated 搜索

*/1 * * * *
/data/DassaultSystemes/R2021x/3DSpace/linux_a64/code/command/FullTextSearch_partial
_indexation.sh > /dev/null 2>&1 //设置定时任务索引

eval expr "COUNT true" on temp query bus Part * * where ' current == Release'; 按类
型查询数量

cp -fr /data/git/plm21x-wt/schema_custom_3de/* /app/schema_custom //代码部署 sit

cp -fr /data/git/plm21x-wt/enovia_custom_3de/* /app/webapps/3dspace //代码部署 sit

update searchindex type 'ENV Process Design' 指定类型更新索引

modify page emxComponents_COE.properties file


/data/git/plm21x-wt/schema_custom_3de_Init/Business/PageFiles/emxComponents_COE.pro
perties;

start searchindex mode partial; //增量跑索引

temp query bus Products * Golden select from[ENV PRODUCT MfgPolicy].to.name dump |;

0 1 * * * /app/DassaultSystemes/cronScripts/AutoRefreshShippmentStatus.sh >
/dev/null 2>&1 //sit

0 1 * * * /app/DassaultSystemes/cronScripts/AutoRefreshShippmentStatus.sh >
/dev/null 2>&1 //prd
exec prog LSNotificationRequest -method processNotificationRequest Daily

execute program SpinnerLicenseRehost; //重置 lic

//给属性建数据库索引
add index "ENVTopPartID" description "This indexes the ENV TopPart ID Attribute"
attribute "ENV TopPart ID";
创建属性 index
enable index "ENVTopPartID";这是启用

eval expr "COUNT TRUE" on temp query bus 'LS Notification Request' * * where
"current == Create && attribute[Notification Type] =='Email'"

temp query bus 'Notification Spool' * * select id

查找总数量
eval expr "COUNT TRUE" on temp query bus 'ENVSPLItem' * * where
"owner=='xiaoxia.qiu'"

start searchindex mode partial;

手动添加到索引队列:log bus [ Object_OID ] eventmonitor AdvancedSearch event bus


custom;
打印当前索引队列:print eventmonitor AdvancedSearch event;

set searchindexcustom

compile prog ESSPLMPDMIntegration;

eval expr "COUNT TRUE" on temp query bus


'ESSMaterial,ESSMakePart,ESSSPLItem,ESSMEPItem' * * where "originated>='6/9/2022
00:00:00 AM' &&originated<='6/10/2022 11:59:49 PM' "

You might also like