• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content

Loading…

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

Like this presentation? Why not share!

Apache HISE + Apache Camel

on

  • 4,159 views

Task Handling

Task Handling
Using Open Source Components
(Apache HISE, Apache Camel)

Statistics

Views

Total Views
4,159
Views on SlideShare
3,092
Embed Views
1,067

Actions

Likes
2
Downloads
43
Comments
0

20 Embeds 1,067

http://rrusin.blogspot.com 811
http://touk.pl 202
http://rrusin.blogspot.in 12
http://rrusin.blogspot.com.br 8
http://rrusin.blogspot.de 6
http://rrusin.blogspot.it 4
http://rrusin.blogspot.mx 3
http://rrusin.blogspot.ru 3
http://rrusin.blogspot.co.uk 3
http://rrusin.blogspot.fr 2
http://rrusin.blogspot.co.il 2
https://touk.pl 2
http://rrusin.blogspot.com.ar 2
http://rrusin.blogspot.pt 1
http://rrusin.blogspot.kr 1
http://rrusin.blogspot.com.au 1
http://webcache.googleusercontent.com 1
http://rrusin.blogspot.jp 1
http://rrusin.blogspot.ch 1
http://rrusin.blogspot.sk 1
More...

Accessibility

Categories

Upload Details

Uploaded via as OpenOffice

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    Apache HISE + Apache Camel Apache HISE + Apache Camel Presentation Transcript

    • Task Handling Using Open Source Components (Apache HISE, Apache Camel) Rafał Rusin [email_address] Warsjava 2010-10-23 [email_address]
    • Introduction to WS Human Task
      • Specification describes an XML language to enable the integration of human beings in SOA systems
      • Human tasks are services "implemented" by people, like transation service or approval service
      • Human task definition (htd) specifies various task properties, like task name, people assignments (potential owners, administrators), task renderings (to present task subject and contents), timeouts, escalations and notifications.
    • WS Human Task Example
      • Creating sample Human Task Definition (HTD file)
      <htd:humanInteractions> <htd:tasks> <htd:task name=&quot;ClaimsHandling&quot;> <htd:interface portType=&quot;tns:ClaimsHandlingPT&quot; operation=&quot;approve&quot; responsePortType=&quot;tns:ClaimsResolvingPT&quot; responseOperation=&quot;resolve&quot;/> <htd:peopleAssignments> <htd:potentialOwners> <htd:from> <htd:literal> <htd:organizationalEntity> <htd:users> <htd:user>Fred</htd:user> </htd:users> </htd:organizationalEntity> </htd:literal> </htd:from> </htd:potentialOwners> </htd:peopleAssignments> ...
    • WS Human Task Example
      • Defining Task presentation (Subject and Description)
      <htd:presentationElements> <htd:name xml:lang=&quot;en-US&quot;> Approve Claim </htd:name> <htd:presentationParameters> <htd:presentationParameter name=&quot;firstname&quot; type=&quot;xsd:string&quot;> xs:string(htd:getInput(&quot;ClaimApprovalRequest&quot;)/cla:cust/cla:firstname) </htd:presentationParameter> ... </htd:presentationParameters> <htd:subject xml:lang=&quot;en-US&quot;> Approve the insurance claim for PLN {$euroAmount} on behalf of {$firstname {$lastname} </htd:subject> <htd:description xml:lang=&quot;en-US&quot; contentType=&quot;text/plain&quot;> Approve this claim following corporate guideline #4711.0815/7 for {$firstname} {$lastname} </htd:description> </htd:presentationElements>
    • WS Human Task Example
      • Specifying outcome to external system on Task completion
      <htd:outcome> <![CDATA[ <cla:resolve> <claimId>{htd:getInput(&quot;ClaimApprovalRequest&quot;)/cla:cust/cla:id/text()}</claimId> <ok>{$outcome}</ok> </cla:resolve> ]]> </htd:outcome>
    • Task Operations
      • Task Operations Service is specified in WSDL format
        • It contains 74 operations to perform by various types of users, like Task Owners, Business Administrators, etc.
        • Authentication is required to access those operations (for example WS Security)
      • Example operation
        • listing tasks
      <xsd:getMyTasks> <xsd:taskType>ALL</xsd:taskType> <xsd:genericHumanRole>ACTUALOWNER</xsd:genericHumanRole> <xsd:maxTasks>10</xsd:maxTasks> </xsd:getMyTasks>
    • Task Operations: Basic Task Lifecycle
      • Basic Task lifecycle consists of claim, start and complete operations performed by Task Operator
      <xsd:claim> <xsd:identifier>123</xsd:identifier> </xsd:claim> <xsd:start> <xsd:identifier>123</xsd:identifier> </xsd:start> <xsd:complete> <xsd:identifier>123</xsd:identifier> <xsd:taskData>someOutputData</xsd:taskData> </xsd:complete>
    • Task Operations: Advanced Lifecycle
      • Task Operations allow various operations. Examples are: Forwarding, Nomination, Suspend / Resume, Suspend Until
      • Additional operations are: Managing Attachments, Renderings, Task Priority, Querying tasks using where clause
    • Apache HISE WS Human Task Implementation
      • HISE is Human Interactions Service Engine http://incubator.apache.org/hise
      • Why Open Source?
        • We believe it's better to not reinvent wheel in each project dealing with tasks handling
        • We feel it's better to start from existing project instead of developing Task Handling engine from scratch
        • We accept extensions to suit needs for various projects requirements
    • Apache HISE - Installation
      • What's inside:
        • Engine (JPA based, H2 Database by default)
        • Camel Integration
        • GWT Frontend for Task Operators
      • Detailed instructions are in User Guide
        • http://incubator.apache.org/hise/user-guide.xhtml
      • WAR Distribution
        • Unzip and put htd files in WEB-INF directory
      • ServiceMix 4 OSGi Distribution
        • features:install hise-h2-test-example-osgi
      • GWT Frontend in separate web application (WAR)
    • Apache HISE Claims Handling Example
      • Detailed instructions are in User Guide
        • http://incubator.apache.org/hise/user-guide.xhtml
      • WAR Distribution
        • Unzip and put htd files in WEB-INF directory
      • ServiceMix 4 OSGi Distribution
        • features:addUrl mvn:org.apache.hise/hise-karaf/1.0.0-SNAPSHOT/xml/features
        • features:addUrl mvn:org.apache.hise.examples/claims-handling-karaf/1.0.0-SNAPSHOT/xml/features
        • features:install claims-handling-example-osgi
    • Apache HISE Claims Handling Example
      • We pick ServiceMix 4 OSGi example
      • Task Operations is exposed under
        • http://localhost:8181/cxf
    • Apache HISE - Camel Integration
      • Camel integration is done using simple Camel Context
      • HISE exposes two direct Camel endpoints for each Task
      <bean id=&quot;hiseRouteBuilder&quot; class=&quot;org.apache.hise.engine.store.HISERouteBuilder&quot;> <property name=&quot;humanInteractionsResource&quot; value=&quot;classpath:Htd1.xml&quot;/> <property name=&quot;hiseEngine&quot; ref=&quot;hiseEngine&quot;/> <property name=&quot;transactionManager&quot; ref=&quot;transactionManager&quot;/> </bean> <camel-osgi:camelContext id=&quot;camelContext&quot; xmlns=&quot;http://camel.apache.org/schema/spring&quot;> <routeBuilder ref=&quot;hiseRouteBuilder&quot;/> <route> <from uri=&quot;file:input?delete=true&quot; /> <to uri=&quot;direct:ClaimsHandling&quot;/> </route> <route> <from uri=&quot;direct:ClaimsResolving&quot;/> <to uri=&quot;file:output&quot;/> </route> </camel-osgi:camelContext>
    • Apache HISE Claims Handling Example
      • After installing example, we can copy approve.xml file to input directory to create a task
      • Then, we can resolve it using either call to Task Operations Web Service or GWT frontend
      • After Task is processed, outcome is sent to output directory (as specified in Camel Context)
      <message xmlns:cla=&quot;http://www.insurance.example.com/claims&quot;> <cla:cust> <cla:id>123</cla:id> <cla:firstname>Edmund</cla:firstname> <cla:lastname>Zorn</cla:lastname> </cla:cust> <cla:amount>1234</cla:amount> <cla:region>usa</cla:region> <cla:prio>2</cla:prio> <cla:activateAt>2009-01-02T12:00:00</cla:activateAt> </message>
    • Apache HISE – GWT Frontend
      • We can manipulate tasks using GWT Frontent application. Following screenshot shows how it looks like
    • Apache HISE Future Plans & Summary
      • Release 1.0 version (it's almost out)
      • Extend Camel usage
        • We plan to expose Task Operations directly over Camel
      • Adding Forms to GWT Frontend using Renderings
      • Simplify GWT Frontent by integrating directly with Camel
      • Our community is growing. We have 7 current committers and 3 pending to vote.
      • HISE has commercial application (it's running in production)