web stats
Verify Code Templates - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Reply
 
Thread Tools Display Modes
  #1  
Old 04-15-2019, 08:45 AM
StickyBandit's Avatar
StickyBandit StickyBandit is offline
Mirth Guru
 
Join Date: Aug 2013
Location: Home Alone
Posts: 905
StickyBandit is on a distinguished road
Talking Verify Code Templates

I just want a verification from Mirth Corp. of how code template instances work in the latest Mirth Connect.

If I have a channel and I set it to have up to 200 threads. If it uses a code template inside a javascript writer destination,
can I assume that each thread is going to have it's own instance of the code template code?

Last edited by StickyBandit; 04-16-2019 at 08:24 AM.
Reply With Quote
  #2  
Old 04-15-2019, 02:06 PM
agermano agermano is offline
Mirth Guru
 
Join Date: Apr 2017
Location: Indiana, USA
Posts: 688
agermano is on a distinguished road
Default

I don't entirely know how to answer your question, but it will or will not have its own instance of the code template code in the same manner that it will or will not have its own instance of the javascript writer code.

Global javascript values won't pass message boundaries unless you use one of the Mirth global Maps as a conduit to do so.
Reply With Quote
  #3  
Old 04-16-2019, 08:28 AM
StickyBandit's Avatar
StickyBandit StickyBandit is offline
Mirth Guru
 
Join Date: Aug 2013
Location: Home Alone
Posts: 905
StickyBandit is on a distinguished road
Thumbs up

Not really referring to global javascript values, the question is more about code template instances. I know they work like macros, meaning if you call the method in two different channels, each channel has it's own copy (instance).

But when multi-threading was added to Mirth Connect, I was confirming if code templates have a unique copy for each thread of a channel? (per message)
Reply With Quote
  #4  
Old 04-16-2019, 09:32 AM
cory_cole cory_cole is offline
Mirth Guru
 
Join Date: Mar 2012
Posts: 1,172
cory_cole is on a distinguished road
Default

According to programming rules, each should have their own copy.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 05:20 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2019, vBulletin Solutions, Inc.
Mirth Corporation