Using a rule in a BPM process

Good day. I created an emdeded rule in the process composer and want to use it in the context processing (change value of the input variable).
The rule is very simple - it receives a value and should return the other:
In: ValSome, out: 1
In: ValOther, out: 2
etc
BUT! I have to create a rule with two input variables because one of them should hold the result. It's not obvious when using the function why there are two variables to input. Can I hide an unnessary variable? Some other workarounds?

Hello Kirill,
No, it is not possible to hide the unused variables. All the data objects of the step (here rules funtion activity) will be displayed in your input and output mappings.
As I understand it, your rules has two data objects - VarIn and VarOut. So, in other words during input mapping you cannot hide the variable - VarOut and similarly in output mapping it is not possible to hide the variable - VarIn.
Regards,
Arti

Similar Messages

  • Using Human tasks in a BPM process

    Hi
    I managed to deploy the VacationRequest sample which uses human task in a BPEL process.
    I want to implement the same human task in a BPM process. Are there any tutorials or stepswise guide for the Vacation Request sample using BPM process?
    Also, what are the main differences between a BPEL and a BPM process because most of the things that are done in BPEL can be done in an BPM process as well.
    Thanks

    I was able to implement the same using a BPM Process.
    For those of you, who may require the steps:
    1. Create a webservice based on the VacationRequest.xsd with VacationRequest as request and VacationResponse as CallBack
    2. Create a human task and task flow as described in the VacationRequest.pdf provided along with the sample.
    3. Create a BPMN process, associate the Start Event to the WebService Interface and map the request and response.
    Also associate the End Event to theWebService callback port.
    4. Deploy the process and taskflow.
    But I have a query here? Even in the sample given(using bpel process) how will the requestor know that the leave has been approved/rejected.
    what exactly is sent out as the response to the call back port. And, where can the requestor view the response?
    Regards

  • Issue with using BRM Ruleset inside a BPM Process

    Hi all,
    I am trying to use a BRM Ruleset using a Mapping artifact inside my BPM process. I have used the same data type (XSD) for my process context and my ruleset parameters.
    Yet on building the Process DC, I get an error that "java.lang.IllegalArgumentException: Invalid restriction, base is not set on... ". I haven't be able to find the cause of the issue as I have passed the same parameter the Ruleset expects.
    Wondering if anyone else is experiencing the same issue? Or am I missing somthing here?
    Thanks
    Suresh

    Hi Suresh,
    We need more information on the error occured. Can you please provide me with the complete error message you are getting?
    Also, if possible can you provide the complete error log here.
    Thanks and Regards,
    Arti

  • BPM Process Monitoring

    Dear All,
    We have implemented a BPM process in NWCE 7.2 SP03 for KM document approval. In order to monitor this BPM process we tried to use Process List Viewer http://help.sap.com/saphelp_nwce72/helpdata/en/4a/ee9c8588946d62e10000000a42189c/frameset.htm which provided by SAP as standard function. But we want to the link which an attribute in process to KM document shown in the process list either. Is it possible to customize the Process List Viewer only for this BPM process? Which Service or API is used by SAP to get BPM Process to monitor? May we use this Service or API to implement own Process List / Process Instance Monitoring?
    Thanks in advance & Regards
    Yao

    Hi Yao,
    unfortunately it is not possible to customize the Process List Viewer.
    In your case I would recommend to create a custom process dashboard with Visual Composer, using the BPM datasources and reporting activity.
    Regards,
    Christian

  • How to access a method in webservice catalogued component in BPM Process

    Hi
    Can anyone explain me how to access a method in webservice catalogued component in BPM Process using an imported jsp in bpm process.
    Thanks & Regards
    Ashish

    If Class B only has a reference to an Interface A, and that reference points to a concrete instance of Class A, then of course Class B can still call the method on Interface A. The method for concrete instance Class A is called behind the scenes.
    That's how interfaces work. That's what they're good for.
    Look at the code in the java.sql package for examples. Connection, Statement, ResultSet - all are interfaces. But behind the scenes you're using the concrete implementations provided by your JDBC driver. You don't know or care what those classes are or their package structure. All you do is make calls to the java.sql interface API, and it all works. - MOD

  • BUSINESS RULES WITH SYNCHRONOUS BPEL PROCESS

    Hi
    I want to know whether i can use Business Rules with Synchronous BPEL process. Actually i developed an example synchronous BPEL process but while invoking decision service it generated an error stating RECEIVE TIMEOUT fault. But when i created identical process in ASYNCHRONOUS mode it went through without any error.
    Thanks and Regards
    Vishnu

    Just in case, here is some documentation about changing the syncMaxWaitTime
    http://download-east.oracle.com/docs/cd/B31017_01/integrate.1013/b28980/bpel_install.htm
    Jan Kettenis

  • Invoking A BPM Process

    Hi All,
    1. What is general architectural practice of exposing a BPM Process? We are into development and currently calling BPM processes directly using WSDL URLs generated by EM.
    2. In how many ways can we expose a BPM process? For e.g. a) Web Service b) EJB Service ???
    3. What is most widely used method/architecture of calling a BPM Process?
    4. What is most widely used tool/API to call BPM process?
    Thanks.
    Edited by: TripleA on Sep 4, 2012 1:03 AM

    A BPM process 'start' activity can have many implementations, only one of them is 'Message' (i.e. a web service interface).
    A process can also be instantiated using a 'signal' / event if you're adopting a loosely coupled, event driven architecture (read about Oracle Event delivery network).
    To see all your options, right click on your 'Start' -> Properties -> Implementation -> Implementation type
    JV

  • Download runtime version of rule used and create in bpm process

    Dear experts,
    does anybody know, if there is a possibility of updating used brm rules used in a bpm process? There seems to be a way, when you create a separate brm project:
    Importing an Updated Project into the Rules Composer - Working with the Rules Manager - SAP Library
    How does this work for rules coming from bpm?
    Do i really have to manually export and import things e. g. over excel for this?
    Regards,
    Markus

    Dear Siddhant,
    thanks a lot for your reply. You got it perfectly right.
    What do you mean with "always points to the updated rules"?
    Do you mean, that using the "Download runtime version" feature on the brm project helps us to keep the rule up-to-date within NWDS?
    Regards,
    Markus

  • BPM process and BRM rules process in same development component in NWDS

    Hi All,
    Is it possible to create the BPM process and BRM rules process in the same development component in NWDS?
    I tried but whenever we create it,say,first ly for BPM,that is File-New-Project-Development Component-Process Composer
    While once this development component is created I try to create rules composer in the same composer by right clicking on local development component as well as process composer but ther is no option of creating /calling rules composer/rules modeling.
    Can you please guide me creating both BPM process and BRM rules composer/rules modeling in the same development component if its possible?
    Thanks in advance

    Open your project explorer and expand the BPM project you have created. Locate a folder named "Rules" in the Project Tree. Right-click on the Rules folder and select 'Create new rule'. You can model your rules such as rule-scripts here and use it in the BPM.
    Note: These rules cannot be used outside the BPM Project.

  • Direct rule resolution in NW BPM process gateway

    Hi,
    I am currently reviewing BRM in the area of NW BPM and I am wondering whether it is possible to use a rule as expression in a Exclusive Choice Gateway in NW BPM process? Until today I have just seen tutorials where a rule has been used in a mapping step which output has been checked in a Exclusive Choice Gateway.
    Thanks,
    Manfred Maierhofer

    Hi Manfred,
    Rules can be be evaluated directly in an Exclusive Choice Gateway. The Ruleset which you want to use can be configured to return the parameter that you need in the Gateway. For e.g. if you want a boolean in the Gateway, create a Ruleset with return type as boolean and set its result to the boolean parameter that you want to return. Then in the Gateway condition, evaluate the ruleset.
    I have submitted an article to SDN on this which gives a description on how to do this with a sample scenario. I will post the link to the article as soon as it gets published.
    Regards,
    Sowmya

  • Processing large volume of idocs using BPM Processing

    Hi,
    I have a scenario in which SAP R/3 sends large volume say 30,000 DEBMAS Idocs to XI. XI then sends data to 3 legacy systems using jdbc adapter.
    I created a BPM Process which waits for 4 hrs to collect all the idocs. This is what my BPM does:
    1. Wait for 4 hrs Collect the idocs
    2. For every idoc do a IDOC->JDBC Message transformation.
    3. Append to a Big List
    4. Loop at the Big list from step 4 and in the loop for
    5. Start counter from 0 and increment. Append to a Small List.
    6. if counter reaches 100 then send a Batch JDBC Message in send step.
    7. Reset counter after every send.
    8. Process remaining list i.e if there was an odd count of say 5300 idoc then the remaining 53 idocs will be sent in anther block.
    After sending 5000 idocs to above BPM following problems are there:
    1. I cannot read the workflow log as system does not respond.
    2. In the For Each loop which loops through the big list of say 5000 idocs only first pass of 100 was processed after that the workflow item is not moving ahead. It remains in the status as "STARTED" but I do not see further processing.
    Please tell me why certain Work Items are stuck is it becuase I have reached upper limit and is this the right approach? The Main BPM Process is also hanging from last 2 days.
    I have concerns about using BPM for processing such high volume of idocs in production. Please advice and thanks in advance.
    Regards
    Ashish

    Hi Ashish,
    Please read SAPs Checklist for proper usage of BPMs: http://help.sap.com/saphelp_nw04/helpdata/en/43/d92e428819da2ce10000000a1550b0/content.htm
    One point i'm wondering about is why do you send the IDocs out of R/3 one by one and don't use packaging there? From a performance stand point this is much better than a bpm.
    The SAP Checklist states the following:
    <i>"No Replacement for Mass Interfaces
    Check whether it would not be better to execute particular processing steps, for example, collecting messages, on the sender or receiver system.
    If you only want to collect the messages from one business system to forward them together to a second business system, you should do so by using a mass interface and not an integration process.
    If you want to split a message up into lots of individual messages, also use a mass interface instead of an integration process. A mass interface requires only a fraction of the back-end system and Integration-Server resources that an integration process would require to carry out the same task. "</i>
    Also you might want to have a look at the IDoc packaging capabilities within XI (available since SP14 i believe): http://help.sap.com/saphelp_nw04/helpdata/en/7a/00143f011f4b2ee10000000a114084/content.htm
    And here is Sravyas good blog about this topic: /people/sravya.talanki2/blog/2005/12/09/xiidoc-message-packages
    If for whatever reason you can't or don't want to use the IDoc packets from R/3 or XI there are other points on which you can focus for optimizing your process:
    In the section "Using the Integration Server Efficiently" there is an overview on which steps are costly and which steps are not so costly in their resource consumption. Mappings are one of the steps that tend to consume a lot of resources and unless it is a multi mapping that can not be executed outside a BPM there is always the option to do the mapping in the interface determination either before or after the BPM. So i would sugges if your step 2 is not a multi mapping you should try to execute it before entering the BPM and just handle the JDBC Messages in the BPM.
    Wait steps are also costly steps, so reducing the time in your wait step could potentially lead to better performance. Or if possible you could omitt the wait step and just create a process that waits for 100 messages and then processes them.
    Regards
    Christine

  • Unable to initiate BPM process despite using script task

    Hi,
    I've created a BPMN process which I want to initiate through a script task - I followed the steps given in section 3.7 of the following doc -
    https://stbeehive.oracle.com/content/dav/st/HP%20personal%20workspace/Public%20Documents/BPMN_03_SalesQuote_Implementation.pdf
    but after deploying this process, when I go to BPM workspace using my user's login, I don't see my BPM process under list of applications. What could be wrong?
    Thanks,
    Harsh

    Hi Lavanya,
    Could you please tell me how you resolved. I am also getting same error.
    com.sap.glx.adapter.api.AdapterException: Process start failed due to TransitionException
    Thanks in advance.
    cheers,
    dev

  • How to change used WD windows for BPM process instance?

    Hello SDN!
    We have two BPM processes (A and B) and two WD DC (A and B). Process A uses window from WD DC A, process B uses window from WD DC B.
    We deactivate process A since we need process B to be used and since A and B use the same WebService. But existing instances of process A still using window from WD A. Is it possible to switch instances of process A from using WD window A to using WD window B? And how we can do this?
    Regards,
    Lev.

    Hi Lev,
    Try this:
    Use an exclusive choice in your process. Create 2 Human Tasks after the Choice with these 2 WD Screens (A & B).
    Based on some condition, you can execute either one of the Human Task. Once this branch of the Exclusive choice executes, place an Uncontrolled merge so that the process execution does not wait for the other branch to execute.
    In this way, based on some condition, you can either execute either WD Screen A or WD Screen B without affecting each other.
    Hope this helps.
    Regards,
    Sid.

  • Synchronous transmission without BPM process

    Right now I have a S/A bridge BPM process for HTTP => XI => RFC interface.
    However this is taking 5 - 8 seconds to process. On further analysing this process, we found out that WF engine is taking 4 seconds in initialize.
    Can I accomplish a synchronous interface without a BPM?

    Hi Parimala,
    If it just a HTTP>XI>RFC Scenario, it can be achieved without a BPM.
    Steps in IR
    1) Create DT,MT and MI(both request and response)for HTTP interface
    2) Import metadata for RFC Interface into "Import Objects"
    3) Create two Message Mappings
        1) HTTP REq-->RFCREQ
        2) RFC Res-->HTTP Res
    4) Create IM for with both REq and RES maps
    Steps in ID
    1) Create HTTP Business Service. As HTTP Adapter is a built in adapter no CC needed.
    2) Add the BS for R/3 and create the Receiver CC for RFC Adapter
    3)Create Routing Rules using RD,ID,RA with Receiver CC
    Use HTTP Client App to test this.
    Hope this helps.
    Rgds,
    Sam Raju

  • BPM Process split, Or Split, Conditional, Multiple Gatways

    Hi
    I am New to this. Please explain what are these and when we use these (split, Or Split, Conditional, Multiple ) when developing a BPM Process. Also where we define rules in BPM

    The Studio documentation might help a little (download it from http://download.oracle.com/docs/cd/E13154_01/bpm/docs65/index.html -> click "PDF" beside the "BPM Studio Guide" link).
    At a high level, the Split activity speeds the process by allowing multiple parallel processing of an instance.
    The Or Split activity is similar to a Split but the Conditional transitions create the copies going through the circuit. Only if all of the Conditional transitions are false is the one Unconditional transition taken.
    The Multiple activity allows any number of instances to be created from a single instance using logic hit at runtime. This is useful in processes that must solicit information from a number of different sources and these sources may not be known until runtime (for example, collecting bids from multiple suppliers). Only one outgoing transition is allowed from a Mulitple activity. A Subflow activity is often used after a Mulitple, which enables you to send the copied instances to multiple processes depending upon the information you need to retrieve.
    All three of these must be paired with a Join activity. The Join activity rejoins the copies of the replicated instances with the original parent instance after they have completed the Split, Or Split or Multiple circuit
    The "Conditional" activity is similar to the traditional decision diamond that has been drawn on flow charts for years. Unlike the Split, Multiple and Or Split activities described above, the Conditional only has one instance flowing out of it via one transition at runtime. Typically in the process's design you might have a Conditional activity with an unconditional transition going to an activity downstream and a conditional transition going to another activity downstream. At runtime when the work item instance reaches the Conditional activity the work item instance either flows through the conditional transition (if it evaluates as true) or else the unconditional transition if the conditional transition evaluated as false.
    The key thing to remember is that coming out of a Conditional activity, the work item instance can only exit via one transition (one path). This is the different when work item instances leave a Split, Or Split or a Multiple activity. For these three gateway activities, copies of the work item instance can flow out of these activities via several paths concurrently.
    Hope this helps,
    Dan

Maybe you are looking for