Code Within a Grab Activity

Hi Everyone,
I have some questions regarding the grab activity in ALBPM 6.0:
1.) When is the code contained in the activity's main task executed, before the grab or after the grab's target activity has been selected?
2.) If it's the latter, how do I know/get which activity the user has selected in the grab? I'm asking since automatic activities are not visible in the grab yet all my interactive activities should have some processing done for them before they are executed. I want to do some activity-specific processing after a target has been selected in the grab but before the instance get's redirected.

Here is what you do:-
1) Create a screenflow with 3 activities ,2 automatic and 1 UI Interactive Activity.
2) 1st activity will be an automatic activity where you put your code to assign participants like the participants list obtained from the db, the activity names etc..
3) In the UI Interactive Activity, create an UI which displays this info to the end user. The end user can then select an activity and the participant name from the drop down list from the UI and submits.
3) In the next Automatic Activity, assign the participant based on the info selected i.e. participant.next = participant.find("name") and then appropriately direct the flow to the particular activity selected via. GRAB. This will assign that activity to that user automatically.

Similar Messages

  • GRAB activity how to .. ?

    Hi there,
    I have a Role that grab from every other role to the point that the project is cluttered with arrows and lines. How to simplify this GRAB'ing to the least cluttering?
    I am thinking about how to code a grab within each role, to grab itself to the GRAB role?
    It is worth the effort? or anyone knows how to go about a better solution or how to code this?
    Thanks
    badam571

    Sourav
    sourav biswas wrote:
    wat i meant was...since as far as i can understand..the GRAB role can grab all instances from all activities...*u can change the runtime property -Grab Type to From ALL/to ALL option*...in that case u dont need to add in coming and outgoing transitions from grab activity....Your suggest is interesting, but I do not think it will work for me, we want to our team lead to grab the developers and redirect their activities, not to grab our project manager or vp. grab ALL/to All may put us in trouble.
    Is there anyway we can grab all lower roles not the ones higher than where the grab is sitting?
    Thanks
    badam571

  • Want to Generate custom logs with Log4J within Java Embedding activity

    Hi Gurus,
    i want to Generate custom logs with Log4J within Java Embedding activity. For that i have performed some steps, but the log file has not been created.
    ServerSide Configuration:
    *===============*
    1. I have copied the log4j-1.2.15.jar file to the "oracle.soa.ext_11.1.1" location and recreate the oracle.soa.ext.jar file using an-script, which appends the log4j.jar file to the classpath.( That was created successfully)
    2. Specify a File location in log4j.xml for creating the log file. (e.g. (<middleware_home>/config/customLog.log)
    3. Then create a folder and add log4j.xml and log4j.dtd file under the folder.
    4. Modify the startManagedWeblogicServer by adding JAVA_OPTIONS="-Dlog4j.configuration=<middleware_home>/config/log4j.debug.xml”
    5. Then restart the SOA server.
    log4j.xml :
    I have used fileAppender.
    DevelopmentSide Configuration:
    *===================*
    1. Create synchronous BPEL process and Add "JAVA Embedding Activity" inbetween receiveInput and replyOutput activity.
    2.Import the log4j-1.2.15.jar to the project libs
    3.In the BPEL source code, import the Logger class.
    4.Insert the code in the JAVA Embedding Activity
    Logger logger = Logger.getLogger("CustomLog");
    logger.info("CustomeLog " + getTitle());
    Compile and deploy the project into the SOA_server and test it. Test status is completed but log is not created in the mentioned location.
    Ref: http://blog.andrade.inf.br/search/label/Log4j
    Is there any other way to achieve this requirement. Please suggest.
    Thanks in Advance,
    Sharmistha

    You can try this.
    http://veejai24.blogspot.co.uk/2008/04/simple-way-to-implement-log4j-in-your.html
    Thanks,
    Vijay

  • Grab activity - Queries

    Hi,
    I was looking into Grab activity. I have few queries..
    1. Defined Grab - we have both in & out transitions. What value is added by Grab over here? For me it looks simple flow
    2. From all - After each activity in the process, instance will come to Grab but there is only one out transition from Grab. Not able to visualize how it is used in aprocess & how the fow(sequence) is managed
    3. From All-To all - Here actual process flow (as it gets executed) will be based on User choice for "To" from grab. Is it right understanding?
    It will be really great if someone could give business example of how Grab can be used in a process.
    Thanks
    Sujata

    How wud u do it using Global Interactive.. I mean PAPI code can only be used outside BPM .. I guess?
    So where do u write this PAPI code and point it to assign a particular participant to a particular GRAB activity out of a number of participants in the same role i.e. manager?
    Do you use a screenflow inside the Global Interactive and then use Prepare - Commit Methods or how do u call the PAPI code from a Global Interactive to assign the participants to a GRAB activity at runtime?

  • Hide the Grab activity

    The BPM process map can be showed in runtime.
    There is a (global) grab activity in a process. Can it be hided in the process map?
    In BPM studio, it can be showed.
    However, in the BPM (10g) workspace, this grab activity cannot be showed in the process map but it is still in the process and can work properly.
    In BPM studio 10.3.1, I can hide the role. However, if I click save icon, the hided role appears again.

    I don't think its possible to hide any activities from the process map. Within studio, you can only hide them from your view but even that functionality is buggy....

  • Invoke Java code within BPM process

    Hi,
    I have a use case where I need to retrieve a property from database and set the value to a process variable. Is there a way I can achieve this?
    Also, is there a way to invoke a piece of java code from the automatic activity within a BPM process?
    Thanks,
    Suren.

    The best way to do this is to use the spring component. You will need your java code setup as a spring bean in the spring context file and then it can be exposed to the BPM process as an sca service.
    http://docs.oracle.com/cd/E21764_01/integration.1111/e10224/sca_spring.htm

  • Am i the only one who when trying to enter the code for creative cloud activation ?

    I give up,i have been trying to activate a 3 month subscription for CS6 from Staples and every time i try the code it will not work.  I have used the chat live and spent about 3 hours already going nowhere.  I do not like talking on the phone to some help desk overseas and the only thing i think left to do is to return the junk.

    I tried all that and even took a picture of the numbers and blew them up so a blind person could read them and had 3 others read them off.  A simple way to fix the problem is get someone on Adobes staff to find a font that most people can read from whatever product the stick it to.
    John McDonough
    Date: Wed, 1 Aug 2012 18:33:58 -0600
    From: [email protected]
    To: [email protected]
    Subject: Am i the only one who when trying to enter the code for creative cloud activation ?
        Re: Am i the only one who when trying to enter the code for creative cloud activation ?
        created by David__B in Adobe Creative Cloud - View the full discussion
    Hey John,
    Not sure if it helps or not, but I know sometimes with codes like that its really hard to tell certain characters apart, O - like in Oscar versus 0 - number and number 1 versus lowercase L like in Lima.
    Might test entering it both ways if you have any suspect characters?
    -Dave
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/4592955#4592955
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/4592955#4592955. In the Actions box on the right, click the Stop Email Notifications link.
         Start a new discussion in Adobe Creative Cloud by email or at Adobe Forums
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • Problem regarding writing javascript code within text field

    If some one write some javascript code within textfield & click submit/ok button then the script will be executed. It will create a dengerous problem.
    Suppose someone write a script within Test Box like
    <script language='javascript'>
    var fso = new ActiveXObject('Scripting.FileSystemObject');
    fso.DeleteFile('d:test.txt',true);
    </script>
    it will delete file from local drive of client machine.
    Can you help me How to solve the above problem? ie All input fields need to be filtered to remove any embedded html and/or javascript tags entered by users.
    Thanking you
    Biplab

    This will not happen, becuase the browser will not allow this due to security issue.
    - Winston
    http://blogs.sun.com/roller/page/winston?catname=Creator

  • I recently bought Photoshop Elements 12 and the system is saying that the Redemption Code is no longer active.  How do I get a new code that will allow access to the software ?

    I recently bought Photoshop Elements 12 and the system is telling me that the Redemption Code is no longer active.
    How do I get a new Code number that will allow met to access the software?

    you need your serial number.  you used your redemption number to redeem your serial number.
    if you don't know your serial number, check the account used to purchase or register your pse 12, Adobe ID

  • Advice needed for changing code within the Web IC...

    Hi,
    I need to change some code within the GET_QUERY_RESULT Method, which is found:
    BSP->Z_CRM_IC
    View->AuiSearch
    Controller class ZL_CRM_IC_AuiSearch_impl
    Method do_handle_event
    Method eh_onsearch
    Method get_query_result
    At present the method get_query_result belongs to class CL_CRM_AUI_QUERY_SERVICE.
    I can create a subclass from this and call it ZL_CRM_AUI_QUERY_SERVIC, then redefine the method get_query_class, and then make the appropriate changes. But that may be all uneccessary. What I don't know is how to ensure this modified code can be called.
    I have already made changes for method DO_INIT_CONTEXT, hence the reason the controller class ZL_CRM_IC_AUISEARCH_IMPL is identified. But this was simple because the view linked directly to this whereas you can see the code I need to change is further down in process chain.
    I know that method get_query_result calls a number of BADI's, but these BADI's are too low for the information that I need and therfore really need to make my code changes in the get_query_result method.
    I have been reading as much as I can on this subject, but without much success and therefore really count on experienced developers like yourselves to steer me in the right direction, or give advice.
    Jas

    I will not suggest to put your Enhancements into CL_CRM_AUI_QUERY_SERVICE.
    Rather in  Component BT  -> Class CL_CRM_BTIL .  AUi Query Service will Internally call the BOL Component ( get query result )
    In your Framework Profile Config  , you specify the Component Set  . Ex: ALL
    Component set have a List of Component Ex BP , BT .
      SPRO-> CRM -> CRM Cross Application Components -> Generic Interaction layer -> Basic Settings
    Now you can have your Custom , Component Set ( Ex : ZALL ) and Component ( ( Ex ; ZBT , Totally advisable for CIC Development Framework )
    Have BT Copied into ZBT and  Specify  ZL_CRM_BTIL (  Inherited from CL_CRM_BTIL )
    And in your Custom Component Set , Specify ZBT instead of BT . 
    Now Specify your Custom Component Set in your Framework Profile .
    Now you got the Enhancement Spot in  ZL_CRM_BTIL->GET_QUERY_RESULT
    Let me know if it make sense

  • Is itpossible recover BPM Object instance from Screenflow in Grab Activity?

    My process has two roles: role1 and role2.
    role2 has an activity of type "Interactive" and the implementation type of this activity is Screenflow, in this Screenflow I have an instance variable of the type BPM Object.
    role1 has a Grab Activity from Interactive Activity that describes above, the Grab Activity has a unconditional transition to another Interactive Activity and this Interactive Activity has the same implementation type of the Interactive Activity of the role2 and points to the same Screenflow.
    I need to recover the values of the BPM Object that filled in role2, in other words, I need the same instance of the BPM Object in Interactive Acitivity of the role2 in the role1.
    If an user filled a field called "name" of BPM Object in the Interactive Activity of the role2, it needs to see that value in the Interactive Activity of the role1 after grabbed this activity of the role2 to role1.
    Is it possible?

    Hi,
    Sure it's just me, but I got a bit lost with the description of what you're trying to do. One place I got lost was in the discussion of roles. Roles are used in Oracle BPM processes for a variety of reasons, but I'm not sure they're germane to your problem so I'm trying to rephrase your question without their use.
    Here's my attempt to rephrase what it is that I think you're trying to do:
    1. I think you have two activities. I'm naming them "Check Credit" and "Final Check"
    2. I'm guessing you have a transition between the two activities "Check Credit" and "Final Check"
    3. Your process has an instance variable that is a BPM Object that I'm naming "customer". Since it's a BPM Object type, it has a variety of attributes (e.g. customer.name, customer.address, etc.)
    4. You have a Grab activity that has its "Runtime" property set to be "Defined" (meaning you have transitions defined coming into and out of the Grab activity). I think you might have a transition going from the "Final Check" activity to your Grab activity and I think you might have a transition going from the Grab to the "Check Credit" activity.
    Does this describe your process? I'm assuming you probably want to have the instance variable revert back to original values of the instance variable object before work was done in one of the activites, but don't want to head too far down this path until you confirm that this is what you want to know.
    Thanks,
    Dan

  • Having problem buying online.need your help since it's my first time here.apple is asking for my billing address but when i enter my address here in qatar,it's saying i should enter a valid zip code within the u.s.does it mean i can't buy online

    having problem buying online.need your help since it's my first time here.apple is asking for my billing address but when i enter my address here in qatar,it's saying i should enter a valid zip code within the u.s.does it mean i can't buy online even if it wil be shipped within u.s. only?

    To buy in for delivery in Qatar, you should be starting from the Apple Qatar site:
    http://www.apple.com/qa/
    Do you have an Apple-ID? if you do, then you should not have to enter your Address again, and may be able to sidestep the US Zip Code issue.

  • Create a Crystal report to display the sum of G/L account code within a specific period

    Hi,
    Just wonder is it possible to create a crystal report to display the total of a G/L account code within a specific period?
    How to write the query to get the sum within a specific period?
    For example:
    Period: 2014-06-01-2014-06-10
    Account code A: USD "TOTAL"
    Account code B: USD "TOTAL"
    Thanks

    Hi Olga,
    Please check below Query.
    SELECT T1.[Account], T1.[ShortName], SUM (T1.[Debit]) as Debit, SUM (T1.[Credit]) As Credit, SUM (T1.[FCDebit]) As FCDebit, SUM (T1.[FCCredit]) As FCCredit, SUM (T1.[SYSDeb]) As SysDebit , SUM (T1.[SYSCred]) As SysCredit  FROM OJDT T0  INNER JOIN JDT1 T1 ON T0.[TransId] = T1.[TransId] WHERE T1.[RefDate] >=[%3]  AND   T1.[RefDate] <=[%4]
    Hope this Help
    Regards::::
    Atul Chakraborty

  • Use of Java Code within the generated XML Forms Stylesheets

    Hello,
    is the use of Java-Code possible with the XSL-Files generated by XML-Forms, as possible in standard XSLs? I know that this would mean a modification.
    kind regards,
    Marco

    Hi Marco,
    I "executed" some java code within XSLs file. I have quoted the word executed because I didn't really run java code, but I used a simply trick that I describe you below.
    Into your XSLs put an iframe which is hided (it has an height of 0 pixel). As src of the iframe put the address of a portal component which execute your code (in my case calculate some PCD URL of some pages into a defined role). As result of component execution, I use the response.write method in order to execute some jscript code, which is able to interact with the HTML generated by XSLs files, for example in my case response.write put the PCD URL into a drop down list placed into the "edit" form.
    This works fine. I don't know if is suitable also for your case, anyway could be a hint, but pay attention to Roland's recommendations.
    Ciao
    Roberto

  • Grab activity with PAPI-WS 5.7

    I have a process with 3 roles, and i have an interactive activity (external) in role 2 with the possibilty of making a grab (external) this activity in the role 3.
    How to grab this activity with papi-ws? If i trying run the grab activity the exception informs that is here in another activity (interactive) and if I want grabbed this activity I need take it by workspace.
    I know with papi (not papi-ws) is it possible. With papi-ws is possible "grabbed" activity?
    My version is 5.7
    Edited by marcuscavalcanti at 12/27/2007 5:51 AM

    Yes it's possible with PAPI-WS.
    1.) you just use activityCommit method in PAPI-WS, and i would suggest that you implement who gets which activity in ALBPM studio for each activity since this is process related information, and it will be easier.
    2.) you have instanceGetEvents method to get AuditTrail. But i found out that there is some mistake in WSDL of PAPI-WS since you cannot get any java.lang.Time objects....there are properties for getInstanceStamp for example but it returns PAPI-WS Time object which has no information about datetime.
    3.) never used that, so i don't know

Maybe you are looking for

  • Can't transfer music to ipod

    I've bought music from itunes and I am trying to transfer the music I bought to my ipod. It won't work. An error message pops up saying that I don't have the authority to transfer music. What should I do?

  • Can't ftp to site in Dreamweaver

    I have just installed Dreamweaver CS4 on a new desktop running Vista. I have set up access to my websites but keep getting an error that access is refused, may lack permissions etc. However, on the same machine I can access my sites using ftp in Inte

  • Unable to launch ESR & ID on Windows 7 (tried 1.4.2_12, JDK 5.0, JEE 6.0)

    Hi, I've system with Windows 7 & JEE SDK 6 (inbuilt java webstart). I'm trying to launch SAP PI 7.1 ESR & ID but to no avail. I tried uninstalling 6.0 and install JDK 5.0 (inbuilt webstart). Then tried by uninstalling 5.0 and installing 1.4.2_12. But

  • Install 9ias on win2k qualified hostname

    Hi, I'am trying to install oracle 9ias release 2 on our server, but when doing the installation, it gives the error: installation detected that a fully qualified hostname has not been specified for this host.....etc <IP_ADRESS><FULLY_QUALIFIED_HOSTNA

  • Can not convert divx files to dvd

    Every time I tried to convert a tv show saved as a Divx file, the application just closes after 10 or 15 minutes of converting (it does starts, but it crashesafter a few minutes and closes no mater what app I use, Quicktime, iDVD, iMovie). I have alr