Calling a Rule from Workflow

How can I call / invoke a Rule from a workflow?
I am trying to Configure a Deferred Task.
The *"Date"* Argument in this Task is actually a "Parsed Date", which needs to be derived from the date which I input into my User Form.
The problem is : when I do the actual Parsing in the User Form, it causes problems for me. That is why I decided to create a Rule, which will calculate/parse the date. And then, I will call/reference this Rule in the Update-User Workflow.
Here is the Rule which I created for Parsing the Date :
*<Rule name='Parsed Date Rule'*
*<invoke name='dateToString' class='com.waveset.util.Util'>*
*<invoke name='stringToDate' class='com.waveset.util.Util'>*
*<concat>*
*<ref>global.day</ref>*
*<s>/</s>*
*<ref>global.month</ref>*
*<s>/</s>*
*<ref>global.year</ref>*
*</concat>*
*<s>dd/mm/yyyy</s>*
*</invoke>*
*<s>mm/dd/yyyy</s>*
*</invoke>*
*<MemberObjectGroups>*
*<ObjectRef type='ObjectGroup' id='#ID#Top' name='Top'/>*
*</MemberObjectGroups>*
*</Rule>*
And here is Here is my Deferred Task code :
*<Action>*
*<Argument name='op' value='addDeferredTask'/>*
*<Argument name='type' value='User'/>*
*<Argument name='name' value='$(accountId)'/>*
*<Argument name='task' value='My Task'/>*
*<Argument name='date'/>*
*<Argument name='accountId' value='$(accountId)'/>*
*<Argument name='executeOnce' value='true'/>*
*</Action>*
How can I reference/call/invoke that Rule in my Deferred Task??
I tried to do the following, but it did not work :
*<Argument name='date'>*
*<rule name='Parsed Date Rule'/>*
*</Argument>*
Any tips, please?
Thanks

My code is still give me an error : "Unparseable Date"
The values are being entered, except for the MONTH VALUE.
In my User Form, I am using drop-down menus to select the values for DAY, MONTH, YEAR.
The value for MONTH is string : JAN, FEB, MAR.
I created a separate Rule, for converting this String value into a Numerical Value (for example : JAN = O1, FEB = 02)
Here is the Rule I use to do the conversion :
<Rule name='Convert Month Rule'>
*<switch>*
*<ref>global.month</ref>*
*<case>*
*<s>Jan</s>*
*<setvar name='global.monthtwo'>*
*<s>01</s>*
*</setvar>*
*</case>*
*<case>*
*<s>Feb</s>*
*<setvar name='global.monthtwo'>*
*<s>02</s>*
*</setvar>*
*</case>*
*<case>*
*<s>Mar</s>*
*<setvar name='global.monthtwo'>*
*<s>03</s>*
*</setvar>*
*</case>*
*<case>*
*<s>Apr</s>*
*<setvar name='global.monthtwo'>*
*<s>04</s>*
*</setvar>*
*</case>*
*<case>*
*<s>May</s>*
*<setvar name='global.monthtwo'>*
*<s>05</s>*
*</setvar>*
*</case>*
*<case>*
*<s>Jun</s>*
*<setvar name='global.monthtwo'>*
*<s>06</s>*
*</setvar>*
*</case>*
*<case>*
*<s>Jul</s>*
*<setvar name='global.monthtwo'>*
*<s>07</s>*
*</setvar>*
*</case>*
*<case>*
*<s>Aug</s>*
*<setvar name='global.monthtwo'>*
*<s>08</s>*
*</setvar>*
*</case>*
*<case>*
*<s>Sep</s>*
*<setvar name='global.monthtwo'>*
*<s>09</s>*
*</setvar>*
*</case>*
*<case>*
*<s>Oct</s>*
*<setvar name='global.monthtwo'>*
*<s>10</s>*
*</setvar>*
*</case>*
*<case>*
*<s>Nov</s>*
*<setvar name='global.monthtwo'>*
*<s>11</s>*
*</setvar>*
*</case>*
*<case>*
*<s>Dec</s>*
*<setvar name='global.monthtwo'>*
*<s>12</s>*
*</setvar>*
*</case>*
*</switch>*
Somewhere in this Rule there is an error, because it is not converting the MONTH.
(The funny thing is : when I do the conversion directly from my User Form, it works perfectly! But, when I try to call that Rule in my Update Workflow, it gives the error)

Similar Messages

  • Calling Webdynpro application from Workflow Task

    Hi All,
    How do i call a custom Java WebDynPro Application from my task? How to pass the container values to the Webdynpro application.
    Can some one help me out?
    Thanks,
    Sarath

    Hi sarath,
    u see this thread, u get more information
    calling web dynpro from workflow - SWFVISU
    Calling Java code from Webdynpro Abap UI
    WebDynpro application that can work with SAP workflow work items?
    WebDynpro in Workflow
    Regards,
    vino

  • How to call java method from workflow script?

    Hi
    I have a requirement of updating field value 'Document Status' based on review/approve of content from Workflow and hence need to update the version number. For that I need to call my java method from workflow during submit of review/approve condition. Please let me know how to call java method from workflow?
    Is there any alternative better way to achive this requirement from workflow? Please suggest.
    Thanks,
    Sarang

    OK. So, I think we can all conclude that you don't need to call any Java method, can't we? And, that wfUpdateMetadata is the command that will update your metadata.
    Now, the question is what are its arguments. It has two - the first is the name of a custom metadata field to be updated (let's suppose that one field is called xMinorVersion, and the other xMajorVersion), the other is the new value, e.g. <$wfUpdateMetaData("xMinorVersion", "New value.")$>As for new value - do you insist on using strings? Since you want to increase the value, it would be more convenient to work with numbers. For instance, with integers you could go with <$wfUpdateMetaData("xMinorVersion", xMinorVersion + 1)$>With strings you will need to convert it to numbers and back to strings. Besides, what happens if you have more than 100 minor versions? (you mentioned you want to add 0.01, but that would finally increase the major version, wouldn't it?) So, I think these two numbers are independent (perhaps, with exception that increase on the major version set the minor version to .00).
    If you want to present it, you can use profiles that will construct for you the representation 2.304 out of MajorVersion = 2, MinorVersion = 304
    Solved?

  • Calling HFM rule from FDM

    Hi Experts,
    I am working on version 11.1.13 and I am new to FDM. Just wanted to know if I can execute a HFM rule from within FDM before exporting the data to the target HFM application?
    I know this is a possibility with the Essbase adapter but just wanted to check about the HFM adapter and how to do it?
    Thanks!!

    The Data Protection feature built in to FDM will do this for you. It allows you to input a string value which will protect all intersections in HFM that have data which contain that string. You can also flip the comparison operator to do the converse i.e. protect all data in intersections that does not contain the string. What FDM actually does is extract all data that meets the data protection criteria specified and appends it to the dataset you are loading thus preventing data from being overwritten. All you really need to do is make sure that the string value you use in the criteria is unique and will not be found as a substring anywhere else in the intersection (as FDM treats the intersection as one long string).
    When I have implemeted it in the past we usually have discrete memebers on the C4 dimension that identify where data has been source from. Hope that helps.

  • How to call OA page from Workflow.

    Hi All,
    I have one requirement.
    I have to call a OA page from worklfow..
    There will be alink in the notification and that link should call OA page
    Does I can do in the same way we give destination URI of page property..in button.
    Let me know if anyone has done same.

    You can call an OA page from WF, but then you won't be able to come back to the WF page as WF maintains a list of variable for its operation which would be difficult to track and keep updated.
    When it comes to Workflow, its always adviseable to work through the embedded OA region in the Workflow page. But again according to Workflow standards, you cann't have such an embedded region which has links or buttons capable of <b>Form Submit </b>.
    null

  • Calling portal screen from workflow and required two level approvals to approve in portal

    Hello Experts,
    I have a requirement that, I would trigger a process order approval workflow from SRM SUS portal. Agent when he clicks the link in the attached mail, it has to take him to the portal screen to approve and it has to go to next level manager for the approval. Once both the managers approves, the approved quantity should be reflected in the SRM SUS portal for the order.
    I have good experience in SAP WORKFLOWS in ECC. However; I have never worked on workflows through webdynpro and never worked on SRM portals as well.
    Please help me in completing this scenario. I have found the proper button in the portal to trigger the workflow. Please guide me the best approach to design and how should I pass webdynpro application link to agent mail with the parameter Order. and how can i bring the control back to my workflow.
    Please help me in
    Thanks in advance. Points will be rewarded.
    Govardhan Rao.

    Hi,
    Check out this link.
    [Re: Workflow Notification problem-URL text is broken in middle.]
    Hope it helps.
    Regards,
    Raj

  • Calling an ASP from Workflow Server 6.2

    Hi,
    After the work flow process gets over I need to call an ASP which can check-in the PDF document created in to Documentum. Can anyone kindly help me with code snippets for achieving this?

    Function XMLHTTP(sMethod, sArg)
    Dim xmlTransfer
    Dim xmlDoc
    Set xmlTransfer = CreateObject("Msxml2.XMLHTTP.4.0")
    Set xmlDoc = CreateObject("MSXML2.DOMDocument.4.0")
    xmlDoc.async = false
    xmlTransfer.Open "POST", "/Apps/Services/FundOrderSrv.asp?method=" & sMethod & sArg, False
    xmlTransfer.setRequestHeader "Content-type","text/xml"
    xmlTransfer.send xmlDoc
    XMLHTTP = xmlTransfer.responseText
    set xmlTransfer = Nothing
    Set xmlDoc = Nothing
    End Function

  • Calling a ILOG JRule based business rule from ABAP

    Hi,
    JRule is a BRMS product from ILOG. I have few business rules maintained in JRule and exposed as JAX Web Service. I was wondering if it is possible to call those rules from ABAP using client proxy similar to the technique used to call Enterprise Services or any other SOAP based web services. Any help is highly appreciated.
    Thanks in advance
    Nilay

    Yes you can. Once you have deployed your rule app to the ILOG Rule Execution Server, you can get login to the RES and get the WSDL and then use the WSDL to invoke the rules.

  • Calling ABAP WebDyn Pro from Workflow task

    Hi All;
    Is there a way to call WebdynPro view from Workflow task?
    Regards
    Devraj

    hi,
    In the workitem text, you can provide HTTP link of your adobe interactive form, so this workitem will go to user with the hyperlink and when he will click, it will redirect it to your interactive form .
    regards,
    sirisha

  • Calling Web Service from SIM

    Hi all,
    We have to call a web service from SIM.
    I don't have any idea how to implement this.
    Do we have to create a custom adapter for this, or we have to use SPML or we can call it direct from workflow?
    Please suggest the appropriate option and also what kind of web services can be called from SIM i.e. they are as simple as other web services or there is any specific implementation details for that. In our web service we only have to call a method that accepts an integer argument and also returns an integer.
    If there is any link or document that can be helpful please provide.
    Thanks
    Edited by: IDM_Discussion on Feb 25, 2008 5:49 AM

    Calling direct to the web service does work. But the advantage of doing a resource adapter is that the calls are integrated into the standard IdM processing. So you will have the standard auditing and tracing capabilities and the ability to see the user in the IdM GUI etc.
    I think as a short cut under time pressure calling direct is ok but architecturally the RA approach is probably better.
    Also a precision: I should have said 'mix and match alomost certainly will not work, out of the box'. We did manage to make Sun JWSDP webservice code run in Web Sphere. But you have to bung all the jars you need into the idm war file and then do a tricky WASsy thing where you set the 'Parent Last' parameter on the IdM web app AND module (two levels) to ensure that the JWSDP classes are loaded before any WAS webservice classes. Oh joy.

  • How to call Interactive form within Workflow ?

    Hi,
    I have created a interactive form within WebDynpro for ABAP which triggers a workflow for approval. Now I would like to open the same interactive form by the approver and approve the request.
    Any input for calling interactive form from Workflow would be helpful.
    Regards
    Ravikumar

    u need to create the events step by step in the workflow.
    first event would be the condition which should be checked so that it gets triggered when the condition is satisfied.
    second would be the the triggering in which u will get this triggered. u need to create a class in which the adobe form's code will be present like the FM it generates etc.in this class u will to write some methods for eg: if u create method say send_mail in this class u will code all the logic for sending the adobe form as a mail and u assign this in the workflow. So now, in the workflow all the methods that u assign will get triggered.

  • Invoking rule from a rule

    Hi All,
    Is it possible to call a rule from within another rule ?
    Thanks

    Take the following two rules for example:
    If a customer has flown more than 25.000 miles and is not already a Silver Elite customer then he becomes a Silver Elite customer.
    If a flight concerns a Silver Elite customer then the bonus miles count 1.5 times.
    When a flight is asserted to the rule engine making the first rule fire, the rule engine can change the status of the customer to 'Silver Elite'. This results in a new fact, being that the customer now is a Silver Elite customer, which should fire the second rule. This phenomena is call rule inference.
    Oracle Business Rules uses the Rete algorithm to determine when to fire rules. When a new fact is created, this algorithm will take care of the adding the related rules to the set of rules to fire, and by that automatically will handle rule inference.
    Jan Kettenis

  • Call the document Approval Workflow screen from a custom KM Details Page

    Hi,
    We are trying to call the Approval Workflow screen from a custom developed KM Details page (using JSPDynpage). How can this event be triggered. We want to trigger the same event that gets called when a user clicks on the Approval Option under Settings in the Details page for a KM resource. Quick response would be much appreciated.
    Thanks and Regards,
    Shibendra

    Hi,
    Refer below links:
    https://blogs.oracle.com/prajkumar/entry/call_oaf_page_from_d2k
    http://oraclearea51.com/11i-oa-framework/17-technical-articles/technical-articles/325-how-to-call-oaf-page-from-form-personalization.html
    http://oracle.anilpassi.com/call-oa-framework-page-from-oracle-forms-passing-parameters-2.html
    --Sushant                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Call rules from PL/SQL

    Hi,
    I have ruleset and it being called by RL function.
    Is it possible that I can call that rules or rule function from PL/SQL, if yes could you please help me with some ideas. (without involving BPEL)
    Thanks
    Sreejit

    <BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by Michael Kleiser ([email protected]):
    Look at this: http://www.oracle.com/oramag/code/tips2001/index.html?021201.html
    It`s a java-function which calls a os-command.
    I haven4t testet it.
    In this forum http://www.dbasupport.com/forums/showthread.php?threadid=3703
    someone asked the same question as you.
    I hope this helps you.<HR></BLOCKQUOTE>
    I've tried the tip above without success. Has anyone got it to work?
    null

  • Call ODI interface from Business Rule

    Hi All,
    Is there any way to call ODI interface from business rule?
    I search the forum and found there is a way to call java code from business rule by CDF.
    ODI provide a dos batch file to invoke the ODI interface. But, how can I call batch file from business rule.
    I am using planning version 11.1.1

    Thanks.
    I can call the JAVA from business rule after assign the security in udf.policy.
    And, I am working on calling ODI scenario. However, I found connection refuse as follows.
    ava.net.ConnectException: Connection refused: connect
         at java.net.PlainSocketImpl.socketConnect(Native Method)
         at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
         at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
         at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
         at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
         at java.net.Socket.connect(Socket.java:520)
         at java.net.Socket.connect(Socket.java:470)
         at java.net.Socket.<init>(Socket.java:367)
         at java.net.Socket.<init>(Socket.java:180)
         at oracle.odi.sdk.invocation.internal.AgentNetworkCmd.<init>(AgentNetworkCmd.java:38)
         at oracle.odi.sdk.invocation.OdiInvocation.<init>(OdiInvocation.java:107)
         at com.gammonconstruction.odi.ODICaller.main(ODICaller.java:
    do I need to add scheduler agent for java request ?
    and, how to add the agent if need?

Maybe you are looking for

  • How do you completely remove all Logic/Soundtrack/etc content in it's entirety?

    I've been trying to find out for hours where these **** files are hiding. I've just tried to install Logic 9 with all the additional content when my installer failed at the last moment and left everything strewn uselessly around my system. I've delet

  • BADI or User Exit for Txn : CRMD_ORDER

    Hi Experts, Is there any badi or user-exits for the transaction crmd_order. regrads, arul jtohi a

  • Add meta property="go:image" to my blog entries

    How do I add <meta property="go:image" to my individual blog entries? The way I had it configured was working until yesterday - when the new BC update was released - and I am now getting this message from the FB Debugger Meta Tags In Body Your page h

  • Netweaver Gateway Architecture

    Hello All, I am looking for architecture of Netweaver Gateway. We are planning to implement Netweaver Gateway 2.0 in Standalone mode. The main objective to implement Netweaver Gateway is to consume apps based on UI5/HTML5 and probably Fiori Apps in f

  • Gradient Banding in Flash

    I'm doing movie titles and can see banding in Flash, which shows up in the exported pngs etc. and I have to figure a way to get rid of it. Not all the gradients do this. Is it a matter of the two colors being too contrasty? Anyone know any work aroun