我正在尝试向 Maximo Anywhere 7.6.1 中的 OSLCWORKTYPE OSLC 对象公开一个新字段,特别是在工作类型查找使用的附加工作类型资源中
按照说明http://www.ibm.com/support/knowledgecenter/SSPJLC_7.6.0/com.ibm.si.mpl.doc/config_apps/t_add_flds_domains.html并阅读本文将自定义字段合并到 OSLC 组件中的步骤- 我仍然无法在应用程序中查看该字段。
我已经添加了如下的附加工作类型资源,但是当控制台将其注销时,它没有显示在对象中。但是,当我使用 Postman 查询 rdf 时,我可以看到响应中返回的字段。有问题的字段是brdbwtcategory
<!-- Work Type resource -->
<resource additionalData="true" describedBy="http://jazz.net/ns/ism/asset/smarter_physical_infrastructure#WorkType" id="additionalworktype" name="additionalworktype" pageSize="100" providedBy="/oslc/sp/SmarterPhysicalInfrastructure">
<attributes id="additionalworktype_attributes">
<attribute describedByProperty="spi:orgid" id="additionalworktype_orgid_spiorgid" index="true" isExactMatchIndex="true" name="orgid"/>
<attribute describedByProperty="spi:worktype" id="additionalworktype_worktype_spiworktype" index="true" name="worktype"/>
<attribute describedByProperty="dcterms:title" id="additionalworktype_wtypedesc_dctermstitle" index="true" name="wtypedesc"/>
<attribute describedByProperty="spi:woclass" id="additionalworktype_woclass_spiwoclass" index="true" isExactMatchIndex="true" name="woclass"/>
<attribute describedByProperty="spi:type" id="additionalworktype_type_spitype" index="true" isExactMatchIndex="true" name="type"/>
<attribute describedByProperty="dcterms:identifier" id="additionalworktype_worktypeid_dctermsidentifier" name="worktypeid"/>
<attribute describedByProperty="spi:brdbwtcategory" id="additionalworktype_worktypeid_spibrdbwtcategory" index="false" name="brdbwtcategory"/>
<!-- <attribute name="startstatus" describedByProperty="spi:startstatus"
/> -->
<!-- <attribute name="completestatus" describedByProperty="spi:completestatus"
/> -->
<!-- <attribute name="promptdown" describedByProperty="spi:promptdown"
/> -->
<!-- <attribute name="promptfail" describedByProperty="spi:promptfail"
/> -->
<!-- <attribute name="keeptaskstatushist" describedByProperty="spi:keeptaskstatushist"
/> -->
</attributes>
<queryBases id="additionalworktype_queryBases">
<queryBase id="additionalworktype_queryBase_getworktype" name="getworktype" queryUri="/oslc/os/oslcworktype"/>
</queryBases>
<whereClause id="additionalworktype_whereClause"/>
</resource>
抬头
<lookup filterClass="application.handlers.WODetailHandler" filterMethod="filterWorktypeForLookup" id="WorkExecution.WorkTypeLookup" label="Select Work Type" resource="additionalworktype">
<requiredResources id="WorkExecution.WorkTypeLookup_requiredResources">
<requiredResource id="WorkExecution.WorkTypeLookup_additionalworktype" name="additionalworktype"/>
<requiredResource id="WorkExecution.WorkTypeLookup_domainwoclass" name="domainwoclass"/>
</requiredResources>
<list id="WorkExecution.WorkTypeLookup_additionalworktype_list" resource="additionalworktype">
<searchAttributes id="WorkExecution.WorkTypeLookup_additionalworktype_searchAttributes">
<searchAttribute id="WorkExecution.WorkTypeLookup_additionalworktype_searchAttribute_worktype" name="worktype"/>
<searchAttribute id="WorkExecution.WorkTypeLookup_additionalworktype_searchAttribute_wtypedesc" name="wtypedesc"/>
<searchAttribute id="WorkExecution.WorkTypeLookup_additionalworktype_searchAttribute_brdbwtcategory" name="brdbwtcategory"/>
</searchAttributes>
<listItemTemplate id="WorkExecution.WorkTypeLookup_additionalworktype_listItemTemplate_Item1Desc1" layout="Item1Desc1">
<listtext cssClass="bold textappearance-medium" id="WorkExecution.WorkTypeLookup_additionalworktype_Item1Desc1_worktype" layoutInsertAt="item1" resourceAttribute="worktype"/>
<listtext cssClass="bold textappearance-medium" id="WorkExecution.WorkTypeLookup_additionalworktype_Item1Desc1_wtypedesc" layoutInsertAt="item2" resourceAttribute="wtypedesc"/>
<listtext cssClass="bold textappearance-medium" id="WorkExecution.WorkTypeLookup__additionalworktype_Item1Desc1_brdbwtcategory" layoutInsertAt="item3" resourceAttribute="brdbwtcategory"/>
</listItemTemplate>
</list>
</lookup>
邮递员回应
{"spi:promptdown": false,
"spi:contentuid": "9",
"spi:promptfail": false,
"spi:worktype": "FO",
"dcterms:title": "Follow On",
"spi:brdbwtcategory": "CM",
"rdf:type": [
{
"rdf:resource": "http://jazz.net/ns/ism/asset/smarter_physical_infrastructure#WorkType"
}
],
"spi:orgid": "TESTORG",
"spi:woclass_description": "Work Order",
"rdf:about": "http://xxxxx.xxx-xxx.xxx:32800/maximo/oslc/os/oslcworktype/_OQ--",
"spi:keeptaskstatushist": true,
"dcterms:identifier": "9",
"prefixes": {
"rdf": "http://www.w3.org/1999/02/22-rdf-syntax-ns#",
"dcterms": "http://purl.org/dc/terms/",
"spi": "http://jazz.net/ns/ism/asset/smarter_physical_infrastructure#",
"oslc": "http://open-services.net/ns/core#"
},
"_rowstamp": "1699854",
"spi:woclass": "WORKORDER",
"spi:brdbwtcategory_description": "Corrective Maintenance",
"spi:type_description": "Not Applicable",
"spi:type": "NONE"
}
查找视图仅显示工作类型
我运行了anywhere-rdf-puller.xml 并验证了该字段位于MobileFirst 服务器上的oslc/shapes/oslcworktype 文件中
在这个过程中我是否遗漏了其他东西?
非常感谢任何帮助