web stats
Mirth Community - Search Results

Go Back   Mirth Community > Search Forums

Showing results 1 to 25 of 500
Search took 0.02 seconds.
Search: Posts Made By: agermano
Forum: Support Yesterday, 06:13 AM
Replies: 5
Views: 2,536
Posted By agermano
Still not on the roadmap. ...

Still not on the roadmap.

http://www.mirthcorp.com/community/issues/browse/MIRTH-4198
Forum: Support 06-24-2019, 07:47 PM
Replies: 20
Views: 354
Posted By agermano
Real logger support: ...

Real logger support:
org.apache.log4j.BasicConfigurator.configure();
var logger = org.apache.log4j.LogManager.getRootLogger();

First line adds a ConsoleAppender to the root logger.
Forum: Support 06-24-2019, 10:54 AM
Replies: 9
Views: 126
Posted By agermano
This question looked so familiar :) Someone else...

This question looked so familiar :) Someone else just resurrected an old thread with the answer. You can either do a replace like Jeff has done, or you can generate it without the new lines there in...
Forum: Support 06-21-2019, 06:41 AM
Replies: 20
Views: 354
Posted By agermano
Nice. I thought about having an extra "compile"...

Nice. I thought about having an extra "compile" step to incorporate the init script as well, but didn't get around to trying it out yet. It was easy enough to just put the load statement at the top...
Forum: Support 06-20-2019, 08:21 PM
Replies: 20
Views: 354
Posted By agermano
So, you can actually create your own...

So, you can actually create your own initialization script. I created a new file.

init_rhino.js:
importPackage(com.mirth.connect.server.userutil);

Then you pass an extra parameter when you...
Forum: Support 06-20-2019, 07:36 PM
Replies: 20
Views: 354
Posted By agermano
Mirth does a lot of setup of the javascript...

Mirth does a lot of setup of the javascript context, adding references to things that won't be available in this environment, importing the User API classes, adding helper functions, etc...


If...
Forum: Support 06-20-2019, 07:13 PM
Replies: 20
Views: 354
Posted By agermano
I took inspiration from your Notepad++ solution...

I took inspiration from your Notepad++ solution and set up something similar in vscode. I haven't actually tested this on Windows, but it works on linux.

A note for your config, all of your...
Forum: Support 06-20-2019, 05:02 PM
Replies: 1
Views: 59
Posted By agermano
connectorMessage.getMessageId() message is a...

connectorMessage.getMessageId()

message is a string in the pre-processor.
Forum: Support 06-20-2019, 04:56 PM
Replies: 5
Views: 103
Posted By agermano
This problem sounded familiar, and I realized I...

This problem sounded familiar, and I realized I never answered your question the last time. See your other post https://www.mirthcorp.com/community/forums/showthread.php?p=266868#post266868
Forum: Support 06-20-2019, 04:53 PM
Replies: 5
Views: 384
Posted By agermano
You can't do it there. It needs to be set on the...

You can't do it there. It needs to be set on the Statement. This is untested, but I think it should work. If you do this in a Database Writer in javascript mode, it should Queue on error (including...
Forum: Support 06-20-2019, 03:29 PM
Replies: 3
Views: 160
Posted By agermano
You can't use a Listener to make an outbound...

You can't use a Listener to make an outbound call. A Listener listens for inbound message.

To elaborate on Kirby's suggestion. You can use a JS Reader to set your polling schedule, then return an...
Forum: Support 06-20-2019, 03:17 PM
Replies: 2
Views: 71
Posted By agermano
The following code worked for me. The main thing...

The following code worked for me. The main thing is that insertChildAfter is looking for a specific xml object. The child() method returns an XMLList, and this is one of the few cases where there is...
Forum: Support 06-20-2019, 01:34 PM
Replies: 4
Views: 65
Posted By agermano
Normally you don't need to do anything to keep it...

Normally you don't need to do anything to keep it in place. It should pass right through. You could be doing something that is removing it, in which case you might need to share your code.
Forum: Support 06-20-2019, 01:26 PM
Replies: 2
Views: 54
Posted By agermano
This assumes there won't be more than 1 OBR...

This assumes there won't be more than 1 OBR segment in a message to begin with. If that's a possibility it will have to be adjusted.

// store original OBR
var obr = msg.OBR;

// get number of...
Forum: Support 06-20-2019, 10:14 AM
Replies: 3
Views: 71
Posted By agermano
Try this: DocumentText += "<br/>" +...

Try this:
DocumentText += "<br/>" + org.apache.commons.lang3.StringEscapeUtils.escapeHtml4(documentLine);
Forum: Support 06-20-2019, 10:08 AM
Replies: 5
Views: 103
Posted By agermano
You would likely have to set a timeout on the...

You would likely have to set a timeout on the connection if you want it to error instead of waiting for a lock to free.
Forum: Support 06-20-2019, 10:05 AM
Replies: 8
Views: 138
Posted By agermano
This is all a good excercise to learn about how...

This is all a good excercise to learn about how mirth works, but it would be much more efficient to do this with a shell script or using javascript/java to do the file moves. A File Reader needs to...
Forum: Support 06-18-2019, 07:02 PM
Replies: 20
Views: 354
Posted By agermano
Another thing you'll want to do is set the...

Another thing you'll want to do is set the appropriate Rhino language version when you launch the shell. I'm assuming you found this already...
Forum: Support 06-18-2019, 06:45 PM
Replies: 20
Views: 354
Posted By agermano
Also, the SerializerFactory from the User API...

Also, the SerializerFactory from the User API doesn't work outside of mirth because it checks with the controllers to see which data types are currently registered.

You can still build them...
Forum: Support 06-18-2019, 06:34 PM
Replies: 20
Views: 354
Posted By agermano
Great first post! I use the interactive rhino...

Great first post! I use the interactive rhino shell all the time. Neat what you did to integrate it with Notepad++. e4x most definitely works.

Your class paths hit a good deal of what you might...
Forum: Support 06-18-2019, 10:50 AM
Replies: 1
Views: 61
Posted By agermano
var xmlString = "<xml><a>1</a><b>2</b></xml>"; ...

var xmlString = "<xml><a>1</a><b>2</b></xml>";
var xml = new XML(xmlString);
logger.info(xml.a.toString());
Forum: Support 06-18-2019, 06:52 AM
Replies: 1
Views: 66
Posted By agermano
There's a bug in 3.7 due to the addition of the...

There's a bug in 3.7 due to the addition of the read-only database pool. You don't have to specify the database if you want read-only actions to share the main pool, but you do have to specify the...
Forum: Support 06-17-2019, 11:42 AM
Replies: 1
Views: 96
Posted By agermano
You're sending it as a string, so it should be...

You're sending it as a string, so it should be logging "batKicks."

Take off the quotes to reference the variable. Since it's an array of objects, you'll probably want to convert to JSON first to...
Forum: Support 06-17-2019, 11:37 AM
Replies: 10
Views: 188
Posted By agermano
Are you able to export and attach your channels...

Are you able to export and attach your channels for us to look at?
Forum: Support 06-14-2019, 01:49 PM
Replies: 10
Views: 188
Posted By agermano
Are you on a mirth version earlier than 3.0?

Are you on a mirth version earlier than 3.0?
Showing results 1 to 25 of 500

 
Forum Jump

All times are GMT -8. The time now is 09:15 AM.


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