web stats
Best practice to work with a team on channels. - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Reply
 
Thread Tools Display Modes
  #1  
Old 08-08-2018, 04:50 AM
kaktus kaktus is offline
What's HL7?
 
Join Date: Jul 2018
Posts: 4
kaktus is on a distinguished road
Default Best practice to work with a team on channels.

Hey everybody,
what is your best practice to work with a team on channels or code templates?

Right now it is very complicated.
For example:
Person A makes changes in the code templates. Then you have to export the Libary/or the template and import it on the other system.
You can check in the exported xml files to git and checkout every morning the current version and import it again to Mirth.
But this way is also very complicated.
Is there a possibility to work like an java eclipse project where you always have the up to date version?
BR Kaktus
Reply With Quote
  #2  
Old 08-08-2018, 05:04 PM
agermano agermano is offline
Mirth Guru
 
Join Date: Apr 2017
Location: Indiana, USA
Posts: 530
agermano is on a distinguished road
Default

So each developer is running their own instance of mirth?

I'm not familiar with what you are referring to in eclipse. Does it automatically pull a branch from git for you in the background or something?
Reply With Quote
  #3  
Old 08-09-2018, 12:18 PM
Shamil Shamil is offline
OBX.3 Kenobi
 
Join Date: May 2013
Posts: 144
Shamil is on a distinguished road
Default

Filter and transformer steps can be defined in external scripts, i.e., in external files that are read when a channel is deployed. You may try to use that feature to collaborate.
Reply With Quote
  #4  
Old 08-15-2018, 08:17 AM
kaktus kaktus is offline
What's HL7?
 
Join Date: Jul 2018
Posts: 4
kaktus is on a distinguished road
Default

Thank you for your reply.
@agermano
Yes each developer is running their own instance.
Right now, we export the channels and library as xml and commit this to git.
So every developer checks out in the morning and re-import the channels and library. This works well but is a lot of work. I donīt have an idea how to simplify this workflow.
@Shamil this sounds interesting but i donīt know how this should work? Do you have more informations?
BR
Reply With Quote
  #5  
Old 08-15-2018, 01:19 PM
agermano agermano is offline
Mirth Guru
 
Join Date: Apr 2017
Location: Indiana, USA
Posts: 530
agermano is on a distinguished road
Default

For Shamil's suggestion, there is a transformer step type called External Script. You could point that to somefile.js in your git repository and not need to reimport it every time. I've never used this feature, but I suspect you would need to redeploy the channel to pick up any changes to the file while mirth is running.

I don't think there is a similar option for code templates.

Another option could be to use scripts to automate the import and export via mirth-cli. Any time you save a channel or template you could run a script that exports them and commits them to the git repo. Maybe you could run regular git pulls in the background and have a post-merge script that will import your channels and code templates if they change?
Reply With Quote
  #6  
Old 08-24-2018, 04:19 AM
kaktus kaktus is offline
What's HL7?
 
Join Date: Jul 2018
Posts: 4
kaktus is on a distinguished road
Default

Thank you for your help.
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 04:46 AM.


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