web stats
Download | Support | Contact
Mirth Corporation
  • Home
  • Products
    • Mirth Connect
    • Mirth Results
    • Mirth Match
    • Mirth Mail
    • Mirth Care
    • Mirth Appliances
    • Mirth Virtual Appliances
    • Mirth Hosted Appliances
  • Services
    • Support
    • Training
    • Consulting
  • Solutions
    • HIEs
    • Hospitals
    • Clinics
    • Laboratories
    • Radiology
    • Vendors
    • Government
  • Community
    • Forums
    • Wiki
    • Issues
    • Source Code
    • Mirth Exchange
    • IRC
    • FAQs
    • Contribute
    • Registration
    • Downloads
  • Company
    • About
    • Mission and Vision
    • Testimonials
    • News
    • Employment Opportunities
    • Contact

Mirth Project

  • Log In Access more options
    • Online Help
    • GreenHopper Help
    • Agile Answers
    • Use Agile By Default
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What’s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • Agile
  • Mirth Connect
  • MIRTH-1536

Allow ChannelId variable access from Pre-processor script

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Improvement Improvement
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 1.8.2
  • Fix Version/s: 2.0.0 RC 1, 2.0.0
  • Component/s: Server
  • Labels:
    None
  • Environment:
    Mirth 1.8.2

Description

Currently, the preprocessor script does not have access to the channelId variable. Some pre-processing 'error-checking' might need that channelId var. I think this would make the preprocessor more valuable. I've detailed this in a thread in support:

http://www.mirthcorp.com/community/forums/showthread.php?t=4277

(The pre-processor also does not have access to code templates, which might also be nice to implement, I'm just not sure if there is a good reason why this would NOT be an intelligent change)

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
  • Source
Hide
Permalink
Jacob Brauer added a comment - 25/Aug/10 6:09 PM
Might need to add an additional context to separate the channel context from the response map so that channel reference items can be used in global preprocessor and postprocessor.
Show
Jacob Brauer added a comment - 25/Aug/10 6:09 PM Might need to add an additional context to separate the channel context from the response map so that channel reference items can be used in global preprocessor and postprocessor.
Hide
Permalink
Jacob Brauer added a comment - 25/Aug/10 6:30 PM
Added a Channel Functions template category and changed the channel id and name templates to be in the channel context. Also changed the global scripts reference list to show anything in the channel context, since the postprocessor has channel items and the response map in its scope and the preprocessor has channel items in its scope. Note that this will cause these items to display for all global scripts, even though they will not work in all scripts.

This same issue occurred with the response map in the channel postprocessor in MIRTH-1206.
Show
Jacob Brauer added a comment - 25/Aug/10 6:30 PM Added a Channel Functions template category and changed the channel id and name templates to be in the channel context. Also changed the global scripts reference list to show anything in the channel context, since the postprocessor has channel items and the response map in its scope and the preprocessor has channel items in its scope. Note that this will cause these items to display for all global scripts, even though they will not work in all scripts. This same issue occurred with the response map in the channel postprocessor in MIRTH-1206.

People

  • Assignee:
    Jacob Brauer
    Reporter:
    Ron Sconyers
Vote (0)
Watch (1)

Dates

  • Created:
    17/Aug/10 1:54 PM
    Updated:
    10/Nov/10 11:10 AM
    Resolved:
    25/Aug/10 6:30 PM
  • Atlassian JIRA (v5.0.3#729-sha1:bf569e4)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Mirth Corporation. Try JIRA - bug tracking software for your team.