<div dir="ltr">Thanks Karbir, that works great.<div><br></div><div>Mike</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Oct 17, 2016 at 9:20 PM, Kabir Khan <span dir="ltr"><<a href="mailto:kabir.khan@jboss.com" target="_blank">kabir.khan@jboss.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Try in your operation's execute():<br>
<br>
public void execute(OperationContext context, ModelNode operation) {<br>
ModelNode operation = Util.createEmptyOperation("<wbr>whatever", context.getCurrentAddress().<wbr>getParent().getParent());<br>
context.addStep(final ModelNode operation, new OperationStepHandler{<br>
public void execute(OperationContext context, ModelNode operation) {<br>
<br>
}<br>
}, MODEL);<br>
<div><div class="h5">}<br>
<br>
<br>
> On 17 Oct 2016, at 13:30, Michael Musgrove <<a href="mailto:mmusgrov@redhat.com">mmusgrov@redhat.com</a>> wrote:<br>
><br>
> I have subsystem model operation that removes a model node:<br>
><br>
> {<br>
> "address" => [<br>
> ("subsystem" => "transactions"),<br>
> ("log-store" => "log-store"),<br>
> ("transactions" => "0:ffffac11829d:83bb:57f3b02a:<wbr>1e"),<br>
> ("participants" => "1")<br>
> ],<br>
> "operation" => "delete",<br>
> "operation-headers" => {<br>
> "caller-type" => "user",<br>
> "access-mechanism" => "NATIVE"<br>
> }<br>
> }<br>
><br>
> After removing the node (which can result in removing the participant and transaction) I need to add a step that will refresh the model. I cannot do the refresh from the current context (which will be the node I am deleting) so I need to refresh from a context that is "higher up the tree". Ideally I want to do<br>
><br>
> PathAddress logStoreAddress = context.getCurrentAddress().<wbr>getParent().getParent();<br>
><br>
> and then do a refresh from logStoreAddress.<br>
><br>
> My question is how can I trigger a refresh when I am in the "wrong context"?<br>
><br>
> Mike<br>
><br>
><br>
> --<br>
> Michael Musgrove<br>
> Transactions Team<br>
> e: <a href="mailto:mmusgrov@redhat.com">mmusgrov@redhat.com</a><br>
> t: <a href="tel:%2B44%20191%20243%200870" value="+441912430870">+44 191 243 0870</a><br>
><br>
> Registered in England and Wales under Company Registration No. 03798903<br>
> Directors: Michael Cunningham (US), Paul Hickey (Ireland), Matt Parson<br>
> (US), Charles Peters (US)<br>
><br>
> Michael Cunningham (US), Charles Peters (US), Matt Parson (US), Michael O'Neill(Ireland)<br>
</div></div>> ______________________________<wbr>_________________<br>
> wildfly-dev mailing list<br>
> <a href="mailto:wildfly-dev@lists.jboss.org">wildfly-dev@lists.jboss.org</a><br>
> <a href="https://lists.jboss.org/mailman/listinfo/wildfly-dev" rel="noreferrer" target="_blank">https://lists.jboss.org/<wbr>mailman/listinfo/wildfly-dev</a><br>
<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>Michael Musgrove</div><div>Transactions Team</div><div>e: <a href="mailto:mmusgrov@redhat.com" target="_blank">mmusgrov@redhat.com</a></div><div>t: +44 191 243 0870</div><div><br></div><div>Registered in England and Wales under Company Registration No. 03798903</div><div>Directors: Michael Cunningham (US), Paul Hickey (Ireland), Matt Parson</div><div>(US), Charles Peters (US)</div><div><br></div><div>Michael Cunningham (US), Charles Peters (US), Matt Parson (US), Michael O'Neill(Ireland)</div></div></div>
</div>