Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Can we execute multiple Confluence Macros on same page in parallel?

AustinS March 14, 2018

Hey there,

We have one macro that could be used/added multiple times on single Confluence page. Right now we find it execute sequentially, but we want it can execute at same time when user press "Save" button.  How could we make sure they executes in parallel?

Is there a way we can implement this or some config settings in Confluence we can use to switch executing order?

 

Thanks.

2 answers

1 vote
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 14, 2018

Why do you think you need to do this? 

AustinS March 14, 2018

Customers' request. They want to load macros and get results faster.

AustinS March 14, 2018

Is that possible in Confluence?

Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 15, 2018

"Customer request" is not an explanation of why you think you want to do this.  It does not matter who is asking, the question is why?

To get results faster, look at performance.  Remove macros from the page, optimise the code for the macros if they're your code, get faster networks, make sure your users are using proper browsers (not IE), get better servers, tune the JVM and so-on.

0 votes
David Brama
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 19, 2020

It might be possible to run a transformer before the macro gets executed and replace the macro elements.

com.atlassian.confluence.content.render.xhtml.transformers.Transformer 

 can be registered in the plugin descriptor:

<transformer key="<TRANSFORMER KEY>" name="<TRANSFORMER NAME" class="<CLASS THAT IMPLEMENTS Transformer>" chain="storageToView" weight="-100000"/>

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events