{"id":80,"date":"2009-11-10T16:46:53","date_gmt":"2009-11-10T23:46:53","guid":{"rendered":"http:\/\/www.corneliadavis.com\/blog\/?p=74"},"modified":"2009-11-10T16:46:53","modified_gmt":"2009-11-10T23:46:53","slug":"basic-tutorial-in-open-ehealth-ipf-v20","status":"publish","type":"post","link":"https:\/\/corneliadavis.com\/blog\/2009\/11\/10\/basic-tutorial-in-open-ehealth-ipf-v20\/","title":{"rendered":"Basic Tutorial in Open eHealth IPF V2.0"},"content":{"rendered":"<p>I&#8217;ve just upgraded to V2.0 and to verify my install (really just checking my eclipse config for IPF) wanted to do a quick run of the <a href=\"http:\/\/repo.openehealth.org\/sites\/ipf\/manuals\/ipf-2.0.0\/First%20steps%20tutorial.html\">basic tutorial<\/a>.  The first part of it (before extending it to set up an HTTP endpoint) was fine but there is a documentation bug for the latter part of the tutorial.  The code shown in the tutorial that needs to be added to the SampleModelExtension.groovy file is missing an import; the file should be as follows:<code>package org.openehealth.tutorial&nbsp;&nbsp;import org.apache.camel.model.ProcessorDefinitionimport org.apache.camel.Exchange&nbsp;&nbsp;&nbsp;&nbsp;class SampleModelExtension {&nbsp;&nbsp;&nbsp;&nbsp;static extensions = {&nbsp;&nbsp;&nbsp;&nbsp;ProcessorDefinition.metaClass.reverse = {&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;delegate.transmogrify { it.reverse() }&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ProcessorDefinition.metaClass.setFileHeaderFrom = { String sourceHeader ->&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;delegate.setHeader(Exchange.FILE_NAME) { exchange ->&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;def destination = exchange.in.headers.\"$sourceHeader\"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;destination ? \"${destination}.txt\" : 'default.txt'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;&nbsp;}}<\/code>Threw me for a bit of a loop because the <a href=\"http:\/\/camel.apache.org\/maven\/camel-core\/apidocs\/index.html\">camel javadocs<\/a> are still describing the pre-camel-v2.0 Exchange interface which doesn&#8217;t include a FILE_NAME field.Now I just have to find the time to figure out how to file doc bugs for IPF and Camel&#8230;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve just upgraded to V2.0 and to verify my install (really just checking my eclipse config for IPF) wanted to do a quick run of the basic tutorial. The first part of it (before extending it to set up an HTTP endpoint) was fine but there is a documentation bug for the latter part of [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"nf_dc_page":"","_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[4,19,1],"tags":[52,72],"class_list":["post-80","post","type-post","status-publish","format-standard","hentry","category-bug","category-opensource","category-uncategorized","tag-camel","tag-ipf"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/corneliadavis.com\/blog\/wp-json\/wp\/v2\/posts\/80","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/corneliadavis.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/corneliadavis.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/corneliadavis.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/corneliadavis.com\/blog\/wp-json\/wp\/v2\/comments?post=80"}],"version-history":[{"count":0,"href":"https:\/\/corneliadavis.com\/blog\/wp-json\/wp\/v2\/posts\/80\/revisions"}],"wp:attachment":[{"href":"https:\/\/corneliadavis.com\/blog\/wp-json\/wp\/v2\/media?parent=80"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/corneliadavis.com\/blog\/wp-json\/wp\/v2\/categories?post=80"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/corneliadavis.com\/blog\/wp-json\/wp\/v2\/tags?post=80"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}