Monday, March 4, 2013

Oracle IPM: Customizing AXF Task Details page – Add new actions: Invoke Outcome


This blog guides you to add functionality to the existing composites. There are 3 different type of actions configurable with Oracle provided AP Solution Accelerator.

  • Invoke “outcome” of human task
  • Do validations, like Transaction id is blank.
  • Allow user to pick user/ Group from list.

The below description focuses on “invoke outcome”. Remaining type of actions and its details will follow on next blogs.

For each solution namespace (can be analogous to BPEL composite, most of the times) that you create, there is an AXF Tasklist page (url has “cmd=Start<SOLN_NAMESPACE>&sol=<SOLN_NAMESPACE>” – assuming that you have already made the database entries for Start<SOLUTION_NAMESPACE>. If not, do not worry, there will soon be another article explaining how to do that) where the end user is provided with the option to take any of the actions that you have configured in your BPEL Human Task. The AXF task list page for a particular Solution Namespace and Command Namespace provides you with all the instances of invoices currently under a particular view.



View Task opens the AXF Task Details page, which has some actions in the left side bar.



In case you want more flexibility with these actions, you need to do some data manipulations in the AXF Database, using the DEV_IPM schema.

Let us first look at the tables in this story:

     1.      AXF_ACTION_MENU


In this table, the entry for Solution_Namespace is made.
Menu_ID is auto incremented using a sequence (AXF_ACTION_MENU_SEQ).
Rest all the entries are to be done as they are for other rows.

     2.       AXF_ACTIONS


This table maps the actions displayed on the UI. For each action displayed on the UI, there is a corresponding COMMAND_NAMESPACE entry here in this table.

Action_ID is again auto incremented using the sequence AXF_ACTIONS_SEQ.
Display_Text is the label you want to give your action on the UI.
Menu_Order acts as a rendering switch – 0 means visible and other values means not rendered.
Menu_ID is the same as the one in the AXF_ACTION_MENU table, for the Solution_Namespace.

     3.       AXF_COMMANDS


In this table a command class is configured for your Solution Namespace and Command Namespace. Usually, it depends upon what your action actually does. For example, oracle.imaging.axf.commands.bpel.CompleteTaskCommand is used when the action signifies completion of a flow or a sub flow. oracle.imaging.axf.commands.bpel.OpenTaskCommand is used when a new flow is initiated. Here, for a new action, you will need the following entries:

SOLUTION_NAMESPACE
COMMAND_CLASS
COMMAND_NAMESPACE
<Your_Solution_Namespace>
oracle.imaging.axf.commands.bpel.AutotaskCommand
AutoOpenTask
<Your_Solution_Namespace>
oracle.imaging.axf.commands.bpel.ReleaseTaskCommand
CancelTask
<Your_Solution_Namespace>
oracle.imaging.axf.commands.bpel.CompleteTaskCommand
<Command Namespace you entered in AXF_ACTIONS>    
<Your_Solution_Namespace>
oracle.imaging.axf.commands.bpel.OpenTaskCommand
OpenTask
<Your_Solution_Namespace>
oracle.imaging.axf.commands.bpel.ReleaseTaskCommand
SkipTask




     4.       AXF_SOLUTIONS


AXF_SOLUTIONS consists of a SOLUTION_CONTEXT entry, which is usually the same for all the Solution Namespaces, namely, ejb.AxfCommandMediator#oracle.imaging.axf.service.AxfCommandMediatorRemote.

     5.       AXF_SOLUTION_PARAMETERS




This perhaps is the most important table because is maps the outcomes of various actions for consumption by either your BPEL process or by AXF internally. Let’s have a closer look at the values that need to be entered here, and what they represent.

For each Command Namespace (i.e. the action you want to add to the UI), there will be 3 entries, which will have the following values:



On the AXF Worklist page, there is an Auto Task button, clicking which open up all tasks in the list in serial order for appropriate actions to be taken by the user. The CMD_AUTOTASK_OFF parameter key’s value will redirect AXF view to the default starting point of your AXF flow in the case when the Auto Task function is not available to the user.

CMD_AUTOTASK_ON points to AutoOpenTask, which is nothing but another Command Namespace created as a part of the Start<Solution_Namespace> entries. The details for AutoOpenTask are as follows:



If you are creating a new composite and don’t have the Start<SolutionNamespace> entries in place, then you will have to do that first.

OUTCOME maps to the value which your BPEL flow is expecting as a return value from the Human Task in this case.

PS: Please note that you are not supposed to create the entries for AutoOpenTask as a part of this exercise. It is a separate topic, and will be addressed in another post.

    6.       AXF_SOLUTION_ATTRIBUTES


In this table, there are 3 entries that are required. There is a snapshot of the actual data below:

SOLUTION_NAMESPACE
PARAMETER_KEY
PARAMETER_VALUE
< SolutionNamespace>
BPEL_CONNECTION
SOA Server
< SolutionNamespace>
CONNECTION_PROVIDER
oracle.imaging.axf.servicemodules.bpel.workflow.AxfWorkflowServiceModule
< SolutionNamespace>
USE_AUTOTASK_LOCKING
FALSE

The keys CONNECTION_PROVIDER and USE_AUTOTASK_LOCKING are given the standard values, as in the snapshot. BPEL_CONNECTION is the name of the connection that is created for the SOA Server in IPM UI.

Once the entries are made using values that we are supposed to enter in various tables as described above, there is one final step that remains to be done for the changes to reflect on the AXF Task details page.

Open the IPM Drivers UI (http://<your_server_ip>:16000/imaging/faces/Driver.jspx). The page that looks like this:


Enter the Solution Namespace, Command Namespace (Remember, the Start<SolutionNamespace> command namespace. And yes, it is a Command Namespace, though it is never shown as an action on the Task details page!!!) and the user name.

Click on Execute Request.
Click on Clear Configuration Cache.
Click on Reset DMS Metrics.
Click on Execute Response. This shall open your AXF Tasklist page in a new tab, and you should be able to see the newly added action on the details page.

Thanks all for reading!

28 comments:

  1. You can easily buy essays cheap at this site without any problems. Be sure of it!

    ReplyDelete
  2. Link routers..Cisco Router Customer Service
    Our highly trained service providers will make sure your problem is resolved in the quickest manner.

    ReplyDelete
  3. Great this article is very helpful. Thank you for the valuable information.
    Find Out More

    ReplyDelete




  4. After this brings up its clients get entertained well with its premium services, the Escorts Service in Gurgaonis liable to increase the level of fun by its quality services dissimilar to get anywhere. So, let us forget everything and take pleasure in what you wait for a long time. Check our other Services...
    Escorts Service in Gurgaon
    Escorts Service in Gurgaon
    Escorts Service in Gurgaon
    Escorts Service in Gurgaon
    Escorts Service in Gurgaon


    ReplyDelete
  5. My travel life have been easier with Garmin Express. Plus I can get all the additional knowledge through their blogs. I use the Garmin app and is totally upto the mark. I recommend everyone to use Garmin Map Update and get Garmin life time map update or call +1-888-309-0939 for instant help from Garmin GPS experts.

    ReplyDelete
  6. I did not know the entire benefits of Garmin Nuvi Update. But since I have read this blog on map update, I have installed all available updates for my garmin device. I must say that this piece of blog has helped me improve navigation experience. I am not suggesting all my friends to read this blog and get Garmin.com/Express with this team. For detailed information, you can contact us at toll-free number +1 888-309-0939. Our Garmin GPS professionals will provide instant help.

    ReplyDelete
  7. Your blog is very good and very informative. Your blog post is very useful. It is exceptionally accommodating for me I learn new information from your post. I truly love your blog post.Thank you for sharing this post with us keep it up.
    Topic Generator
    Write my assignment
    Harvard referencing generator
    Thesis Writing

    ReplyDelete

  8. Huge variety of Delhi Escorts girls Service on Daily Basis
    If you book our Delhi Escorts girls then our escort agency will arrange your date with a girl who can easily fulfill your every sexual wild desire and give some extraordinary sexual pleasure. They can go long drive, parties, clubs, pubs, and other areas with you just to give you some GFE( girlfriend experience services).
    Delhi Escorts
    Delhi Escorts

    ReplyDelete
  9. Sand impacting framework is find inside the tremendous assortment of the business it is use inside the all sort of the undertaking automatic sand blasting machine

    ReplyDelete
  10. The purpose of using sand blasting machinePortable Abrasive Blasting Machine in India is to provide satisfaction to their client's products if there are some undesirable or some kind of particle which are going to damage the material in future, so in sand blasting industry in India, it is always made sure that first the material is fully protected by the damages which could occur in future and deploy the material performance and become problematic situations for the clients.

    ReplyDelete
  11. Accountants are chartered accountants in London, providing support to thousands of freelancers, contractors, e-commerce and SME's.Accountants London

    ReplyDelete
  12. Today, websites are the most important part of all business growth. This is because nearly 70 percent of the world is addicted to the Internet and everything online.

    바카라사이트

    안전놀이터

    토토사이트

    토토사이트

    토토

    바카라사이트

    ReplyDelete
  13. I began my journey in this body massage near me
    business when I was only 25 years old. Now, after 10 years my spa is famous in hyderabad.If you're thinking of booking an time with us, don't hesitate to reach me on 0000000000 as our services cannot get more superior than this

    ReplyDelete
  14. Massages are not just good for your massage spa hyderabad physical health, but they also help to improve your mental well-being. Massages calm your soul and bring you to your core. A good massage will help you sleep peacefully and allow you to think clearly.

    ReplyDelete
  15. In Massage Centre in place comprehend the reality that the lifestyle of livingin bangalore without massage near me reviving your body once the course of time is as if you were playing with fire.massages for body and soul end with a happy end. It's a hands-on work to satisfy your desires.

    ReplyDelete
  16. Bangalore girls service provides a lot more than just unforgettable experiences. Our team is made up entirely of highly dedicated and talented individuals who work together as one to provide you with an exceptionally high level of customer service.

    ReplyDelete
  17. We have a diverse range of Bangalore Companion who are ready to fulfill all your dreams. You can have fun with our Bangalore Companion whenever you want to or wherever you want to.

    ReplyDelete
  18. If you're looking for a luxurious massage Best Spa In Bangalore, look no further than The SutraSpa. With its world-class facilities and experienced Spa in Bangalore, The SutraSpais sure to give you a relaxing and rejuvenating experience.

    The SutraSpa offers a variety of massages, from Swedish to deep tissue, and you can choose from a range of add-ons such as many Body massage therapy. You can also opt for a package, which includes a massage, facial, and manicure/pedicure.

    Whether you're looking for a one-time treatment or a regular spa experience, The SutraSpa is sure to exceed your expectations.
    There is no better place to relax and rejuvenate than at the best spa in Bangalore. With its tranquil atmosphere and expert staff, the spa offers the perfect environment for you to unwind and escape the stresses of everyday life. From massages and facials to manicures and pedicures, the spa offers a wide range of services to help you look and feel your best. Whether you're looking for a relaxing day of pampering or a more invigorating experience, the best spa in Bangalore has something to offer everyone.
    Every spa in Bangalore offers its own unique services that range from massages to facials and waxing to body wraps. There are also saunas, steam rooms, aromatherapy, and other therapies you can try. But which one of these spas in Bangalore is the best? Of course, this depends on your personal preferences and needs. It’s always better to do some research before choosing what’s right for you!

    ReplyDelete
  19. Our Mumbai Models Girls are some of the most beautiful and talented in the country. They have graced the covers of magazines, walked the runways of the biggest fashion shows, and been the face of some of the most successful ad campaigns. But more than just being beautiful, our Mumbai models are also intelligent, hardworking, and ambitious. They are the perfect combination of brains and beauty, and we are proud to represent them.

    ReplyDelete
  20. A Mumbai Companion
    is your personal guide to the city, providing you with insider tips and advice on the best places to eat, drink, shop, and play. Whether you're looking for the perfect spot to watch the sunset or the best place to catch a Bollywood movie, your Mumbai Companion will help you make the most of your time in the city.

    So whether you're visiting Mumbai for business or pleasure, be sure to make a Mumbai Companion your first stop.

    ReplyDelete
  21. Our Mumbai Models Girls are some of the most beautiful and talented models in the country. They have graced the covers of magazines, walked the ramp at fashion shows, and been the face of advertising campaigns. These girls are not only beautiful, but also intelligent and successful. They are role models for young girls and an inspiration to women of all ages.

    ReplyDelete
  22. Our Bangalore Companion are here to make your dreams come true. We have a wide selection of models to choose from, so you're sure to find the perfect model for you.

    ReplyDelete