cancel
Showing results for 
Search instead for 
Did you mean: 

Configure an action for the execution of a chain

Michael_Bell
Confirmed Champ
Confirmed Champ

Hi,

I configured a chain like the following:

<chain id="minimum_chain">  
  <operation id="Seam.AddInfoMessage">  
    <param type="string" name="message">Success.</param>  
  </operation>  
</chain>  

Additionally I configured in another component/extension file the according action:

<action id="Chain.minimum_chain" link="" enabled="true" order="20"
    label="minimum.chain" icon="/icons/action_add.gif">  
  <category>SUBVIEW_UPPER_LIST</category>  
  <filter id="newProjectAck">  
    <rule grant="true">  
      <permission>AddChildren</permission>  
      <type>Project</type>  
    </rule>  
  </filter>  
</action>

The button is displayed correctly. I can click the button and the page reloads but nothing happens. I have no errors in the server log and it looks like nothing happens at all. I created a minimal chain to test my understanding of the mechanism but it looks like there is a missing link.

Any ideas what's wrong?

I don't find an example in the documentation which shows how to connect an action with an operation chain.

Best regards, Michael

1 ACCEPTED ANSWER

Florent_Guillau
World-Class Innovator
World-Class Innovator

In the <action> element you should use:

link="#{operationActionBean.doOperation('your.chain.name')}"

View answer in original post

3 REPLIES 3

Florent_Guillau
World-Class Innovator
World-Class Innovator

In the <action> element you should use:

link="#{operationActionBean.doOperation('your.chain.name')}"

I changed the link option to

I created [a new question](http