Execute a Task flow in HFM based on a event

Hi All,
I have a requirement to automate a task flow based on if a file has arrived at a particular location. The requirement goes like this:
1. File arrives at a particular location
2. Task flow will be initiated as soon as the file arrives, task flow will load data from the file,consolidate and extract data to a predefined location.
My question is how can i write a batch to check in the folder if the file has arrived and based on that trigger the task flow if i get a positive result.
I can write the batch to check if the file exist but i don't know how to trigger the task flow from batch script.
Any help guys, I'm badly stuck.
Thanks in advance,
Suman

Make a file / directory watcher service to monitor for the activity : http://www.techrepublic.com/article/use-the-net-filesystemwatcher-object-to-monitor-directory-changes-in-c/6165137
Then use hfm-batch to execute your script. https://github.com/cgiogkarakis/hfm-batch

Similar Messages

  • Automation of HFM Task Flow

    Hi,
    I am trying to automate the the task flows that we are using to consolidate and other tasks. My requirement is to automate them and schedule them as per the completion of the database load. So basically, I need to trigger my task flows after the completion of the event rather than kicking them off at a particulaar time.
    Any help would be appreciated.
    Thanks,
    Edited by: 902809 on 16-Dec-2011 03:50

    Thanks Charles,
    I found the document but what is mentioned in the document is the normla functionality of the task flows. That is I can automate a task ( like consolidate, calculate etc) but can only initiate a task at a particular time. I need to kick off/trigger the task based on a succeesful completion of a event ( like data load from the source or FDM load etc ). I am not able to find anything on that.
    Thanks,

  • Programmitically call a task flow commit

    I'd like to execute a task flow commit from a method inside an application module impl class.
    How can I get a handle on a task flow and invoke the commit in my code?
    Any insight appreciated.

    Thanks for the help.
    Where can I find API docs that include this DataControlFrame?
    Long story short, I am trying to do this:
    DataControlFrame dcf = bc.getCurrentDataControlFrame();
    and the compiler is complaining that getCurrentDataControlFrame returns a string and not a
    DataControlFrame. Where can I pass that string returned by getCurrentDataControlFrame to get a handle on the DataControlFrame itself?

  • Task flow inside panelTabbed

    I need to design an application whose home page is a panelTabbed with four tabs.
    Clicking on every tab has to show a different page flow (task flow). I need every page or view in the task flow to appear inside the panelTabbed.
    I have tryed to create the main page as a paneltabbed with four showdetailitem and then try to put the four different page flows as a childs of every showdetailitem but I don't know how to do it. Trying to drag and drop the page flow inside the showdetailitem Jdev displays a context menu suggesting to choose a "Task flow call as button" or Link, but what I need is to directly execute the task flow in the showdetailitem and display the application as soon as I click in the tab corresponding every showdetailitem.
    Thank you.

    You are using 'Bounded Taskflow with Pages'.
    In order to create regions, you should create *'Bounded Taskflow with Page fragments'.*
    Thanks,
    Navaneeth

  • Creating Task Flow fails

    Hi,
    I am trying to create a Task Flow in HFM. I created new task, entered user credentials and in processing tab I picked URL for POV and clicked on edit and selected my dimensions, when I click “Ok” button the page goes blank. When I look at the page properties I notice that the page is directed to http instead of https. Could anyone please let me know if you have encountered this issue and how to go about fixing it. Thanks.

    I fixed it.. I forgot to point the AM to the datasource but instead it was was using JDBC URL connection type.

  • Unable to extract all the currencies using Task Flow

    Hi Everyone,
    I have 60 currencies that I extract using a Task Flow in HFM 11.1.2.1 to a SQL table, I only receive 59 of those currencies FX Rates in the SQL table. The CNY currency does not extract at all.
    I have tried changing the PoV around with no success. I don't think it is the PoV anyway because the other 59 currencies have no problem.
    Any inputs please...
    Regards,
    Vinod

    Sounds like this is using an EA extract process. In your Task Flow, can you extract just that one (CNY) currency? If you do this directly in Extended Analytics, is the output any different from the Task Flow? How about if you extract to a text file rather than SQL?

  • Error while deploying the ADF task flow project based on a SOA human task

    Hi,
    I created a SOA project with a BPEL process containing Human task, deployed it and could able to test it successfully. I created ADF task flow project based on the Human task created in the earlier project and tried to deploy it. It is giving the following error. The idea is to display the task details in BPM worklist.
    [04:10:53 PM] [Deployer:149034]An exception occurred for task [Deployer:149026]deploy application RevisionApprovalMgmtTaskFlow [Version=V2.0] on soa_server1.: null.
    [04:10:53 PM] Weblogic Server Exception: weblogic.application.WrappedDeploymentException
    [04:10:53 PM] See server logs or server console for more details.
    [04:10:53 PM] weblogic.application.WrappedDeploymentException
    [04:10:53 PM] #### Deployment incomplete. ####
    [04:10:53 PM] Deployment Failed
    The server log shows this detailed error.
    java.lang.IllegalArgumentException
         at oracle.xml.xpath.JXPathExpression.evaluate(JXPathExpression.java:178)
         at oracle.xml.xpath.JXPath.evaluate(JXPath.java:288)
         at oracle.security.jps.internal.config.xml.XmlConfigurationFactory.initialize(XmlConfigurationFactory.java:425)
         at oracle.security.jps.internal.config.xml.XmlConfigurationFactory.getConfiguration(XmlConfigurationFactory.java:149)
         at oracle.security.jps.internal.config.deploy.CredentialStoreDeployer.getCredentialStore(CredentialStoreDeployer.java:56)
         at oracle.security.jps.wls.listeners.CredentialDeployment.migrate(CredentialDeployment.java:83)
         at oracle.security.jps.wls.listeners.JpsApplicationLifecycleListener.migrateAppCredential(JpsApplicationLifecycleListener.java:137)
         at oracle.security.jps.wls.listeners.JpsApplicationLifecycleListener.preStart(JpsApplicationLifecycleListener.java:78)
         at weblogic.application.internal.flow.BaseLifecycleFlow$PreStartAction.run(BaseLifecycleFlow.java:277)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
         at weblogic.application.internal.flow.BaseLifecycleFlow$LifecycleListenerAction.invoke(BaseLifecycleFlow.java:194)
         at weblogic.application.internal.flow.BaseLifecycleFlow.preStart(BaseLifecycleFlow.java:57)
         at weblogic.application.internal.flow.HeadLifecycleFlow.prepare(HeadLifecycleFlow.java:279)
         at weblogic.application.internal.BaseDeployment$1.next(BaseDeployment.java:609)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
         at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:185)
         at weblogic.application.internal.EarDeployment.prepare(EarDeployment.java:53)
         at weblogic.application.internal.DeploymentStateChecker.prepare(DeploymentStateChecker.java:154)
         at weblogic.deploy.internal.targetserver.AppContainerInvoker.prepare(AppContainerInvoker.java:60)
         at weblogic.deploy.internal.targetserver.operations.ActivateOperation.createAndPrepareContainer(ActivateOperation.java:197)
         at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doPrepare(ActivateOperation.java:89)
         at weblogic.deploy.internal.targetserver.operations.AbstractOperation.prepare(AbstractOperation.java:217)
         at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentPrepare(DeploymentManager.java:747)
         at weblogic.deploy.internal.targetserver.DeploymentManager.prepareDeploymentList(DeploymentManager.java:1216)
         at weblogic.deploy.internal.targetserver.DeploymentManager.handlePrepare(DeploymentManager.java:250)
         at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.prepare(DeploymentServiceDispatcher.java:159)
         at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doPrepareCallback(DeploymentReceiverCallbackDeliverer.java:157)
         at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$000(DeploymentReceiverCallbackDeliverer.java:12)
         at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$1.run(DeploymentReceiverCallbackDeliverer.java:45)
         at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:516)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Apart from these, I have Model and View Controller projects in the application. If I create the ADF task flow based on a Human task in another sample application, it works fine. Only in this application, it does not work. Not sure what this error is. Any ideas?
    Thanks,
    Manoj

    What I suggest is go into EM and undeploy this composite and all versions. (Only if you don't want the existing ones). Then redeploy your process. This will avoid the version conflict and create a new version. 1.0. Then the next time you try and deploy you need to either specify a new version or check the box to say the version can be over written.
    cheers
    James

  • ExecuteWithParams in adf Task flow is not executing

    Hi,
    I have a generic page fragment(Task Flow) which accepts a parameter from the calling page, when I use it as a Region.
    Based on the value of the parameter passed I have to filter the table data or I have to execute a ViewObject .
    For that I used a bind variable in the View Object.
    And I dragged the ExecuteWithParams from DataControl to the Fragment defenition(TaskFlow).
    <method-call id="ExecuteWithParams">
          <method>#{bindings.ExecuteWithParams.execute}</method>
          <outcome id="__90">
            <fixed-outcome>ExecuteWithParams</fixed-outcome>
          </outcome>Now the Issue I am facing is when I run the page, the jsff page is returning as empty. It is showing a message like "No data to display"
    Also the Method call ExecuteWithParams is showing a warning that bindings is not known.
    Studio Edition Version 11.1.1.2.0
    Build JDEVADF_11.1.1.2.0_GENERIC_091029.2229.5536
    Please Help....
    -Ranjith

    Hi Arun,
    I set the ExecutewithPrams as the default Activity, And I am getting the pageFlowScope parameter in the task flow, but while executing the execute with param I am getting a No data to display message in my table
    here is my task flow
    <?xml version="1.0" encoding="UTF-8" ?>
    <adfc-config xmlns="http://xmlns.oracle.com/adf/controller" version="1.2">
      <task-flow-definition id="Test_definition">
        <default-activity id="__1">ExecuteWithParams</default-activity>
        <transaction id="__35">
          <new-transaction/>
        </transaction>
        <input-parameter-definition id="__21">
          <name id="__22">pCode</name>
          <value>#{pageFlowScope.pCode}</value>
          <class>java.lang.String</class>
        </input-parameter-definition>
        <input-parameter-definition id="__23">
          <name id="__24">pLabel</name>
          <value>#{pageFlowScope.pLabel}</value>
          <class>java.lang.String</class>
        </input-parameter-definition>
        <managed-bean id="__27">
          <managed-bean-name id="__25">TestCommonBean</managed-bean-name>
          <managed-bean-class>view.bean.TestCommonBean</managed-bean-class>
          <managed-bean-scope id="__26">request</managed-bean-scope>
        </managed-bean>
        <view id="TestCommon">
          <page>/TestCommon.jsff</page>
        </view>
        <method-call id="ExecuteWithParams">
          <method>#{bindings.ExecuteWithParams.execute}</method>
          <return-value id="__36">true</return-value>
          <outcome id="__7">
            <fixed-outcome>ExecuteWithParams</fixed-outcome>
          </outcome>
        </method-call>
        <task-flow-return id="rollback">
          <outcome id="__18">
            <name>rollback</name>
            <rollback/>
          </outcome>
        </task-flow-return>
        <task-flow-return id="commit">
          <outcome id="__19">
            <name>commit</name>
            <commit/>
          </outcome>
        </task-flow-return>
        <control-flow-rule id="__8">
          <from-activity-id id="__9">ExecuteWithParams</from-activity-id>
          <control-flow-case id="__11">
            <from-outcome id="__12">ExecuteWithParams</from-outcome>
            <to-activity-id id="__10">TestCommon</to-activity-id>
          </control-flow-case>
        </control-flow-rule>
        <control-flow-rule id="__20">
          <from-activity-id id="__28">TestCommon</from-activity-id>
          <control-flow-case id="__30">
            <from-outcome id="__33">commit</from-outcome>
            <to-activity-id id="__29">commit</to-activity-id>
          </control-flow-case>
          <control-flow-case id="__32">
            <from-outcome id="__34">rollback</from-outcome>
            <to-activity-id id="__31">rollback</to-activity-id>
          </control-flow-case>
        </control-flow-rule>
        <use-page-fragments/>
      </task-flow-definition>
    </adfc-config>

  • Creation an ADF Task Flow Based on a Human Task

    Hello!
    While creating ADF Task Flow Based on a Human Task, I can't bind New TaskFlow to task, which I choose in Dialog.
    Details:
    I Have:
    BPM Project with PackageCreation.task
    ADF Project in Same Application
    I do:
    1. in Application Navigator right click on ADF Project -> New -> Web Tier -> JSF -> ADF Task Flow Based on a Human Task
    in creation Dialog I choose PackageCreation.task and Don't change name of New TaskFlow (automatically JDeveloper set this name to PackageCreation_TaskFlow)
    I have After that:
    new ADF Task Flow and my old PackageCreation.task.
    Question:
    Why my Task don't bind to created ADF task Flow based on it?
    I think, that while creating ADF Task Flow Based on a Human Task it has to change my task, writing some thing like This (inside xml):
    <taskFlowFileLocation>file:/D:/JDeveloper/mywork/SalesQuoteLab/EnterQuoteUILab/public_html/WEB-INF/EnterQuoteDetails_TaskFlow.xml</taskFlowFileLocation>
    That xml element is creating in xml of *.task, while making auto-generation form for human task in BPM Project.

    Juan C,
    I use JDeveloper 11g Release 1.
    May be I didn't explained my question correctly.
    taskdetails1 is creating, and in Data Controls I have objects of my BPM Human Task Payload.
    But in that file "PackageCreation.task" in source I can't find any link to instantly created TaskFlow.xml in my UI project.
    So, I have
    NEW project "PackageCreationUI" with PackageCreation_TaskFlow.xml in it (and TaskDetails1 file too).
    AND Did't Changed PackageCreation.task in BPM Project.
    If I use *"BPM form creation wizard"*, after creating project and TaskFlow in it I see Changes in PackageCreation.task in BPM Project, something like that:
    <taskFlowFileLocation>file:/C:/JDeveloper/mywork/testApp/PackageCreationUI/public_html/WEB-INF/PackageCreation_TaskFlow.xml</taskFlowFileLocation>

  • Task Flow based on Human Task

    Hi,
    I have created a Task Flow based on Human Task in the Ui project. The task flow is auto -generated with the taskdetails.jspx as the default activity. If I try to include a ExceuteWithParams method in the task flow as the default activity the page gives a 500 Error in the workliist application.
    Can I no have a method activity as the default activity in this task flow.
    Thanks
    Soumya

    Are you trying to set "Create with parameters" as default task flow activity ? in that case open the the task flow diagram , right click "Create with parameters" data control -> Mark Activity -> Default Activity.

  • Why : Data Control entry not expandable/empty - ADF Task flow based on HT.

    Hi All,
    I've hoping to create an ADF Task flow based on a human task. I have a stand alone ADF application within the ViewController of which I am attempting to create this task flow. The resultant data control entry doesn't seem to be expandable.
    Questions
    1. When creating an ADF Taskflow based on a human task, should it always be within a project in the same application as the SOA components?
    2. If no, is the resultant human task data control empty or not expandable because the xsd for the HT is based on the MDS? I have configured all the MDS connections within my application.
    JDev : 11.1.1.4
    Thanks
    PP

    Hi,
    Answers :-
    1. No, it is not necessary that your ADF Taskflow based on Human Task should be in the same application where the SOA Project Resides. But for the deployment of that ADF Taskflow you will need the SOA Project.You can add that project whenever you want to deploy.
    2. It might be the cause due to the MDS Configuration .
    Do one thing , while creating the ADF Taskflow based on Human Task , you do select the .task file via the file system not from the MDS.
    If you will select the .Task file of your soa project then it will ask you to name the Taskflow, just name the taskflow as you want and say ok.
    After creating the taskflow, it will add a lot of xml files in your project and it will create a data control of it.
    Hope it helps!!
    Regards,
    Shah

  • ADF Task Flow based on HumanTask - Region withiin Task form

    Hello All,
    Was wondering if anybody here has sucessfully used region in their human task forms? I really like the idea of regions and after going through the tutorial here* I tired to implement it.
    Following are some additional details of the issue I'm facing.
    I have created a UI project based on a human task. The main <human task>_taskFlow.xml is bounded and non-fragmented. I then dropped 'view' component within this task flow and create a blank jspx page underneath. I then dragged and droped another bounded and fragmented task flow (which is also a train) on to this jspx page. The 2nd task flow has some jsff pages in a train. When I deploy run this bpm project,I can't see train form within the region and I get following Null Pointer Exception on the server:
    java.lang.NullPointerException
         at oracle.adfinternal.view.faces.renderkit.rich.FormRenderer.encodeAll(FormRenderer.java:233)
         at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1396)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:335)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:767)
         at javax.faces.component.UIComponent.encodeAll(UIComponent.java:937)
    Any help would be much appreciated.
    *http://st-curriculum.oracle.com/obe/jdev/obe11jdev/ps1/boundedtaskflow/bounded_task_flow.html                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Update: After struggling with it almost whole day, I recreated the UI project and the problem has gone away.

  • Update an ADF Task Flow based on Human Task

    Hello friends,
    I'm working on Oracle BPM Suite 11g. So, I created a process including its human tasks. Later, I created a Task Flow based in the human task that I setup before. Now I added a new parameter to the human task and I need to update the task flow because (of course) it only contains the payload of the previous configuration.
    Can I do that? What can be the solution?
    Regards....
    AYVR

    It's covered in docs here: http://download.oracle.com/docs/cd/E17904_01/integration.1111/e10224/bp_designtf.htm#BDCDFBCB
    Note that this only updates the control. You'll have to now drag those new payload properties onto the form. If you had removed any properties you'd need to remove those from the form.
    You should also do a refresh of the window that contains the data controls. Sometimes that's necessary to see the changes.

  • Possible to use menuBar with task flow based ADF menus?

    Hello -
    I've just worked through the " [Create ADF Menus for Page Navigation|http://www.oracle.com/technology/products/jdev/11/cuecards111/adf_set_43/ccset43_ALL.html] " tutorial. It shows how to create menus based on your task flows.
    My question: is it possible to use the af:menuBar with these menu models (instead of navigationPanes or breadcrumbs) ?
    I am using JDev 11g 11.1.1.1.0
    Thanks.
    Edited by: scott.turnquist on Nov 5, 2009 12:07 PM

    Hi,
    The XML menu model extends the Trinidad TreeModel, which extends Collection model. This allows you to access the hierarchical menu structure so that you can use af:iterator to build a structure to display in a af:menuBar
    Frank

  • Task Flow Based On Input Parameter

    I am using JDev 11.1.1.6.
    I have an app that uses a Task Flow with "ExecuteWithParams" to get the parameter from a URL and display the appropriate records on a page.
    I do this by using a Bind Variable on the VO that corresponds to the InputParameter on the ExecuteWithParams control.
    What I would like to do is flow to a different page, depending on the parameter used in the URL.
    Example:
    If param in URL is "?TEAM=1" then I would go to the TEAM page and display records for TEAM 1.
    If param in URL is "?REGION=3" then I would go to the REGION page and display records for REGION 3.
    Thanks,
    Ray

    This could probably be solved using a router activity or a custom method as the default activity in the Task Flow. Then outcome of the router/method, can easily route to the desired TF activity based on an input parameter. E.g. if parameter is "region" route to executeRegionIteratorWithParams, which in turn will "flow" to displayRegions view activity.

Maybe you are looking for