Jazz Register Log in
Jazz Forum Welcome to the Jazz Community Forum

Welcome to the Jazz Community Forum

Connect and collaborate with IBM Engineering experts and users

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

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?

0 votes



One answer

Permanent link

 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.

0 votes

Comments

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.

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 log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,996

Question asked: Apr 18 '17, 3:10 a.m.

Question was seen: 1,877 times

Last updated: Apr 18 '17, 5:52 a.m.

Confirmation Cancel Confirm