It's all about the answers!

Ask a question

For RTC 6.0.2, I want to customize config editor of advisor in web ui


change man (113) | asked Apr 18 '17, 3:10 a.m.
edited Apr 18 '17, 4:00 a.m.

1、I has added advisor.

2、I want to add config view of advisor from follow image.

3、I has referenced RequiredApprovalsEditor of RequiredApprovals.
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<plugin>

    <!-- work item web UI bundle registration -->
    <extension point="net.jazz.ajax.webBundles">
        <prerequisites>
            <requiredWebBundle id="net.jazz.ajax"/>
            <requiredWebBundle id="com.ibm.team.repository.web"/>
            <requiredWebBundle id="com.ibm.team.process.web"/>
        </prerequisites>
    </extension>
   
   <extension point="com.ibm.team.process.service.operationAdvisors">    
      <operationAdvisor class="my.rtc.advisor.MyRequiredApprovalsAdvisor"
            id="my.rtc.advisor.MyRequiredApprovals" name="客制化必须核准"
            operationId="com.ibm.team.workitem.operation.workItemSave">
            <extensionService
               componentId="my.rtc.advisor.MyRequiredApprovals"
               implementationClass="my.rtc.advisor.MyRequiredApprovalsAdvisor">           
                <prerequisites>
                    <requiredService interface="com.ibm.team.workitem.service.IWorkItemServer"/>
                </prerequisites>
            </extensionService>
      </operationAdvisor>

   </extension>
  
       <extension point="net.jazz.ajax.cssBindingSets">
        <cssBindingSet id="my.rtc.advisor.process.css" path="">
            <cssBinding jsModule="my.rtc.advisor.StateBasedModificationEditor">
                <cssModule path="/templates/OperationBehaviorEditorStyles.css"/>
            </cssBinding>
        </cssBindingSet>
    </extension>
  
    <extension point="com.ibm.team.process.web.operationBehaviorEditors">
          <editor operationBehaviorId="my.rtc.advisor.MyRequiredApprovals"
           widget="com.ibm.team.workitem.web.process.ui.internal.operationbehavior.RequiredApprovalsEditor"/>

    </extension>
    <extension
          point="com.ibm.team.process.service.configurationPoints">
    </extension>
    <extension
          point="com.ibm.team.process.service.enableWebUIOperationBehaviorConfiguration">
    </extension>
</plugin>

4、I release the plugin to the server. when openning advisor page, appear the following error.
 

There was an error loading the customization controls for this precondition.

ID:   my.rtc.advisor.MyRequiredApprovals

Widget: com.ibm.team.workitem.web.process.ui.internal.operationbehavior.RequiredApprovalsEditor

Error:      SyntaxError: expected expression, got '<'




This problem has not been modified. Hope to get help?

One answer



permanent link
Ralph Schoon (63.5k33646) | answered Apr 18 '17, 5:11 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

 As far as I am aware there is no documentation how to do that at the moment. I would suggest to create an Eclipse IDE based Aspect Editor as described in the RTC Extensions Workshop.


Comments
change man commented Apr 18 '17, 5:24 a.m.

Thank Ralph Schoon,
My company used to do before and after the post-condition configuration page explanation of the Eclipse IDE. But my company to abandon the use of IDE configuration, because it is use rise is not flexible that each machine to install the IDE.
So, want to customzie Aspect Editor in web ui to config the configuration.


Ralph Schoon commented Apr 18 '17, 5:30 a.m. | edited Apr 18 '17, 5:52 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

Unfortunately the situation is currently that you need the Web UI as well as the Eclipse UI to be able to perform all project area administration tasks. 


I am not aware of a working documentation how to provide a web UI for the advisor configuration of a custom advisor (or participant). 

I think it is hopeless to try, as you also need some API to access the items you want to show there.

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.