I need tutorials to help me configure and get task list.

hello,
In my current use case scenario i would have to do simple task like fetch TASK list and MODIFY A Human Task.
I plan to use the wsdl <oracle_home>\bpel\system\services\schema
It would be great if we have some good links to get started.
Thanks,
Sun

I am using workflow API to develop the use cases and this code seems to work.
import java.util.ArrayList;
import java.util.List;
import org.apache.log4j.Logger;
import oracle.bpel.services.workflow.client.IWorkflowServiceClient;
import oracle.bpel.services.workflow.client.WorkflowServiceClientFactory;
import oracle.bpel.services.workflow.query.ITaskQueryService;
import com.oracle.services.bpel.task.Task;
import oracle.bpel.services.workflow.repos.Ordering;
import oracle.bpel.services.workflow.repos.Predicate;
import oracle.bpel.services.workflow.repos.TableConstants;
import oracle.bpel.services.workflow.task.ITaskService;
import oracle.bpel.services.workflow.verification.IWorkflowContext;
public class TaskImpl {
     private static org.apache.log4j.Logger log = Logger
     .getLogger(TaskImpl.class);
     public void getTask(){
          System.out.println(" classpath : " + System.getProperty("java.class.path") );
          try {
               //Create JAVA WorflowServiceClient
               IWorkflowServiceClient wfSvcClient =
               WorkflowServiceClientFactory.getWorkflowServiceClient(WorkflowServiceClientFactory.SOAP_CLIENT);
                    //Get the task query service
               ITaskQueryService querySvc = wfSvcClient.getTaskQueryService();
               //Login as jcooper, jstein or jcooper or weblogic
               IWorkflowContext ctx = querySvc.authenticate("weblogic",
               "weblogic",
               null, //Use default realm
               null);//Not logging in on behalf of another user
               //Set up list of columns to query
               List queryColumns = new ArrayList();
               queryColumns.add("TASKID");
               queryColumns.add("TASKNUMBER");
               queryColumns.add("TITLE");
               queryColumns.add("OUTCOME");
               //Create a predicate to query tasks that have a null outcome
               String outcome = null;
               Predicate predicate = new Predicate(TableConstants.WFTASK_OUTCOME_COLUMN,
               Predicate.OP_EQ,
               outcome);
               //Create an ordering to order tasks by task number
               Ordering ordering = new Ordering(TableConstants.WFTASK_TASKNUMBER_COLUMN
               ,true //Ascending order
               ,false //Nulls last
               //Query a list of tasks assigned to jstein
               List tasks = querySvc.queryTasks(ctx,
               queryColumns,
               null, //Do not query additional info
               ITaskQueryService.ASSIGNMENT_FILTER_MY,
               null, //No keywords
               predicate, //Only tasks with no outome set
               ordering, //Order by ascending task number
               0, //Do not page the query result
               0);
               //Get the task service
               ITaskService taskSvc = wfSvcClient.getTaskService();
               //Loop over the tasks, outputting task information, and approving tasks
               for(int i = 0 ; i < tasks.size() ; i ++)
               Task task = (Task)tasks.get(i);
               int taskNumber = Integer.parseInt(task.getTaskId());
               String title = task.getTitle();
               String taskId = task.getTitle();
               //Set the outcome
               taskSvc.updateTaskOutcome(ctx,taskId,"APPROVED");
               System.out.println("Task #"+taskNumber+" ("+title+") is APPROVED");
               catch (Exception e)
               //Handle any exceptions raised here...
               System.out.println("Caught workflow exception: "+e.getMessage());
}

Similar Messages

  • Change equipment and functional task list

    Hi All,
    I have a requirment to mass change the equipment and functinal task list data.The upload file has the group, group counter and operation which i have to use has key fields and only one field value needs to be changed. the field value that needs to be changed is 'Work involved in the activity' (PLPOD-ARBEI) field. we have change the no of hours.
    could anyone please let me know if there is a BAPI or function module to fulfill this particular requirment. I searched the forum but could not find any BAPI.
    Thanks in advance.

    hello,
    see i can tell you onething....when you will go to routing screen (ca01,ca02,ca03)...
    you will get a find button there on screen (see binacular sign)...when you click on that and enter any operation number ..then it brings that operation to first rwo and then you can modify the fields you wanted...
    but if you want to modify operation ..user has to give the operation number along with routing group and group number....
    while doing bdc recording you have to follow same same sequence of step...go to ca02 enter routing grp and grp counter from that screen go to header and from there go to operation screen ..click binacular button to find operation...then when that operation will come on first screen ..edi the field you want for that operation...
    you can include all this recording in a Function module...take these grp number and grp counter as import parameters to FM and define a table for operation details .....and the execute ..it will change the operation..but remember the thing taht user shd know the vales op operation to be modify and grp number and grp counter..if he is trying to modify the operation which is not existing then ..you can give error message stating the same...so he will change the operation

  • Can we call a transaction in background and get the list in report?

    I want to call the standard T-Code MC.9 from a report in background using Call Transaction and get the list in the report.There are some enhancement done to its base program RMCB0300 due to which if I use Submit ... exporting to memory and then import the list from memory, the result doesnt match to the values given by T-Code MC.9.
    The option apparently for me is to use Call Transaction method, but if I use Call transaction method, how do I make the report to be executed in background and then get the resultant list in the report?

    Copy the program in Z and than modify it saving the list on memory on database table.

  • Hi there... I need a little help with buttons and their actions using flex builder 4.5

    I run a repo company and have zero experience in the developing applications and I could use some help from anybody that is willing to give it.... Here is a basic idea of what I need...  let's say there are 3 states... state 1 has a question that says "car you read this?" and a "yes" and a "no" button... when you select either answer, you go to slide 2.  Slide 2 with have a question like "Is the sky brown?" and a "yes" and a "no" button and when either button is selected, you are taken to Slide 3.  Slide 3 needs to be some sort of a text form that is created by the user selecting the buttons and the screen would say something like "yes, i can read this.  no, the sky is not brown", or "no, I can't read this.   yes, the sky is brown" .  I know how to get the buttons to take the user to the correct new slide, but I do not know how to get the buttons to insert specific text somewhere else when any button is selected.... Can anybody help me?  Youtube is only getting me so far, and my kids are driving me nuts while I'm trying to figure this monster out...  I've gotten several slides created and some screens have several buttons, I just need to see what I need to put in the code to get it to do this type of function 

    Also where can I read up on setting my .Xdefaults and xmonad.hs file? I ripped someones from this forum, and it works nice, but I want to make my onw, but cant find any decent documentation. Thanks.
    At the moment, the best source for configs are those posted in the screenshots thread (for both Xdefaults and xmonad.hs), the xmonad config archive (and the available docs from the root page on that site), and our own thread.  Unfortunately you'll have to sort of scrounge for good docs on the xmonad.hs at the moment, since most of the information was written for the 0.4 version of xmonad.  The configuration has since been made MUCH simpler.
    Hope that helps some.

  • [solved] Need a little help with sed and regular expressions

    Hello!
    I am shure this is something easy for most of you
    I want to make a script, which converts filenames of my ripped MP3s (replaces '_' with spaces, removes leading track numbers...)
    But I have some problems:
    j=$(echo $j | sed 's/_\+/ /g')
    j=$(echo $j | sed 's/^[0-9]{0,3}//g')
    j=$(echo $j | sed 's/[^ ]-[^ ]/ - /g')
    j=$(echo $j | sed 's/_\+/ /g') << this is working fine (converts all "_" to spaces)
    j=$(echo $j | sed 's/^[0-9]{0,3}//g') << is NOT working, why??
    For Example in "01-somebody_feat_someone-somemusic.mp3" the leading "01" number is NOT being removed..
    j=$(echo $j | sed 's/[^ ]-[^ ]/ - /g') << how can I insert spaces before and after the "-"?
    So that "someone-somemusic" becomes "someone - somemusic" (but only where "-" is surrounded by letters)
    Last edited by cyberius (2011-07-27 18:50:54)

    For sed, you must escape { and } to use them as you want (just slap a \ before them).
    For the last expression, capture the letter before/after the dash -- use \( and \) -- and then substitute it for something like "\1 -" and then "- \1". You'll want to split this into two pieces, one for the front and one for the back so you can get "somemusic -someband" the way you want without a bunch of cases.
    Edit: Or, you could just do a replace for "-" to be " - " and then have another expression to reduce spaces. I see you've used \+ before, so I'm guessing you can figure that out
    Also, sed has the -e switch so you can do multiple different expressions with one invocation.
    Also (also), have you looked into something like Picard with automatic track renaming? You can even customize how they are renamed.
    Edit (2): Also^3, check out prename. There are different versions, ones which use PCRE and ones that use other standards, but it is for renaming files based on regular expressions, which is what you're doing. In any case, you might want to put you script into the User made scripts thread when you feel more comfortable and get some more critiquing, if you're interested.
    Last edited by jac (2011-07-26 23:13:27)

  • How to Install, Configure and getting started with Hyperion Web Analyzer9

    i have installed both
    Hyperion Reporting and Analysis - System 9 Services Release 9.3.1 Microsoft Windows x86 Installer.
    Hyperion Reporting and Analysis - System 9 UI Services Release 9.3.1 Microsoft Windows x86 Installer
    Now tell me step by step on how to configure and how start Web analyzer
    I dont know how to start server/services. (Any Web server required?)
    Getting started would be more helpful.
    Need help ASAP.
    thanks,
    Ram

    Hi,
    First of all have you installed Shared Services as you will need that as that foundation of the installation.
    You will also need to install other components such as essbase if you intend to use it with web analysis.
    If you have done that, then you will first need a repository to hold Reporting and Analysis information.
    Afte start up the configuration utility and select the Reporting & analysis elements and go through the steps entering
    details such as shared services connection, repository information.
    It should install the components as a service.
    You should really read the installation document :- http://download.oracle.com/docs/cd/E10530_01/doc/epm.931/hs_windows_install.pdf
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • We have had a request to purchase Livecycle ES4. I am trying to find out how much this will cost and get a list of requirements needed to install and run this product,

    Looking to find out what the infrastructure requirements are for this product and how it needs to be administered by our IT shop. Thanks

    Complain to the Attorney General about what? There is nothing in your story worth any such complaint. They will tell you the same.
    First you have payment difficulty so credit and the Edge program are not available to you. You have to be credit worthy to get any upgrade, unless you can pay full price for all those new devices.
    Can you?
    You are trying to get new contract plans, but since you are having paying on time and in full issues you will not get extended credit from any carrier.
    What I would do is go and port out to Boost or Virgin Mobile where you pay a reduced cost for each device and get unlimited everything for $40 to $50 a month, it is pre pay so if you don't pay you get cut off.
    Verizon although with the best coverage is also the highest priced.
    Good Luck

  • I have two lists. The first is "Tasks", second is "Journal". I need a "Create Journal Entry" link in the Tasks list. How do I do that?

    Let's say I have a Task named "Build SSIS for Duke Energy" and it has another column called Active. Now every day I look at my task list and If I worked on that task I want to create a Journal entry of what I have done. So from the Task
    list I'd like a third column that calls the "Journal Entry" list's new form page and pass it in the ID of the task. I have found several TextToHtml scripts out there, but they have to be stored in a script library, and then sourced to a content
    editor web part. The problem is they don't fire when I have my list grouped. In addition to, every time someone creates a new view, I have to go in and add the Content Editor web part, point to the script....
    Any thoughts. It is the grouped view that really bug me.

    Hi,
    If you only want to add a hyperlink to create a Journal entry in the task list, I recommend to add a Hyperlink column in the task list and then create workflow to update the column.
    You can follow the steps as below:
    Open the task list, add a hyperlink column named Create Journal Entry.
    Create a workflow associated to the task list, start the workflow automatically when an item is created.
    Add actions as below:
    Then when a task is created in the task list, the workflow will be stared automatically to update the “Create Journal Entry” column.
    Thanks,
    Jason             
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Jason Guo
    TechNet Community Support

  • Filter not working in new and old task lists (new farm)

    I noticed this after migrating some sites from our current production environment. Even when creating a new task list the filter will not work, however if I make a custom list and add the existing Assigned To column, the [Me] filter will work.
    This is starting to drive me nuts, any help would be appreciated.

    This is a bug in the March 2015 CU. I have an open case on it, where MSFT is able to repro it. This is just a workaround and hopefully the issue will be resolved in the future. It only impacts Tasks lists.
    As to doing it to all Task lists, no I'm unsure of how to accomplish that.
    Trevor Seward
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • Equipment BOM and Equipment Task List

    Hi
    I have created an Equipment BOM (IB01) and Equipment TL (IA01). When creating a WO using IW31 why doesn't the TL and BOM get copied across?
    Regards
    Adeel

    While doing maintenance for equipment (creating order in IW31), its not necessary that all the operations in task list & all the materials from BoM should be used.
    Based on the maintenance, you can select the operations from task list & you can select the components.
    In order, go to Extras => Task list selection => Reference object. It will list the task lists available for the equipment, from that you can select.
    For components, in components tab, there will be structure button. Click that, it will show you the BoM created, from that list, select required components.
    Note: Only in Production order, all the operations from Routing & all components from BoM will be copied. This is because for production order, all the operations & components are required to produce the finished product.

  • Report for COOIS, need details on how to configure and modify

    Hello,
    I want to understand the concept of layout and profile and how are they differenet.
    e.g. If I select a profile from the given F4 help say 00000001 (standard Layout).
    this changes the result output in the object overview screen. why are these 2 different entities. i.e. layout and profile.
    Secondly, I need details on how can I configure the output of the object overview screen, which is the correct place to do this?
    I know its a standard report/transaction, but I have a z-copy of it and I need to modify the same to get the desired results.
    e.g. I want to new buttons with extra functionality to be placed in the object overview sceen.
    Thanks & regards,
    Ravish

    dear friend,
    In the version ECC6.0 there is a configuration transaction  COIS - please run it in your dev environment and make an adjaustents yo need.
    good luck.

  • Need information about SAP EM Configuration and Implementation

    Hi,
    I am new to SAP EM.I need to do Configuration for EM and Procurement visibility process.
    Please provide some information on configuration of EM with examples.
    Thanks,
    Prasuna.

    Hi
    There is wealth of information available on the [Service Marketplace |https://websmp107.sap-ag.de/scm]on the standard visibility scenarios which will probably get you started. Procurement visibility scenario is one of the them and have documentations.
    There are couple of points which are worth knowing that SAP Event Management
    - requires configuration in both application system (ECC) and SAP EM system (SCM)
    - good understanding of the function module (extractors) for sending and posting events
    - well thought supply chain events (design) business would like to monitor and manage
    - reactions to both expected and unexpected events (follow-up activities)
    The other resource available are [SAP PRESS technical book |http://www.sap-press.com/products/Implementing-and-Configuring-SAP-Event-Management.html] and [published case studies |http://www.scmexpertonline.com/article.cfm?session=&id=4804] on the SAP EM Procurement visibility scenario.
    Cheers
    Sandeep Pradhan

  • I need some advanced help regarding AE and PPRO workflow

    Hi all.
    I have a problem and require a solution. I am creating a video that has cellphone/IM chat graphics, animated in After Effects. The problem is the layering.
    In PPRO, the layers are as follows on the timeline.
    Top layer: Chat Graphics
    Middle Layer: Adjustment layer with colour grade effects
    Bottom Layer: Footage
    Now the issue I am having is that I need the chat graphics to cast a Gaussian Blur underneath them (the graphics are at 80% opacity) - and I have successfully done this using the AE Adjustment Layer switch, however since the graphics are in AE, and the footage is in Premiere, they blur does not appear. In other words, the graphics in AE are set to blur the layer below itself IN AE, but the footage layer below is IN PPRO.
    So... one might think that the obvious solution is to layer it all in AE, using the Replace with AE Composition option in PPRO. However, this means that the adjustment layer for the grade will affect the chat graphics which need to be consistent.
    Help...

    Just to report back - The Track Matte Key effect worked like a charm.
    Just had to create two extra layers in PPro.
    One duplicate layer of blurred footage. One duplicate layer of graphics to become the matte, on top of the footage layer.
    The effect of Gaussian Blur and Track Matte Key was applied on the footage layer.
    Thanks again Richard

  • I need a little help with xmonad and stuff

    Hi all. I recently changed from fluxbox to xmonad, and I find it fantastic. I have some minor? problems.
    In fluxbox I was using xterm as a terminal emulator, but I couldnt use irssi with it, the Alt + w/e keys weren't working. They worked however in aterm and urxvt but those two support only 16 colors, and I wish to use 256 colors, mainly because of my vim color scheme. Is there a solution to be able to run both irssi and vim from the same terminal, or should I run different terminals for them?
    Also where can I read up on setting my .Xdefaults and xmonad.hs file? I ripped someones from this forum, and it works nice, but I want to make my onw, but cant find any decent documentation. Thanks.
    edit:
    I found the solution to using the Alt key in xterm. I had to add theese two lines in my .Xdefaults
    XTerm*eightBitInput: false
    XTerm*metaSendsEscape: true
    Last edited by tch (2007-12-28 11:00:33)

    Also where can I read up on setting my .Xdefaults and xmonad.hs file? I ripped someones from this forum, and it works nice, but I want to make my onw, but cant find any decent documentation. Thanks.
    At the moment, the best source for configs are those posted in the screenshots thread (for both Xdefaults and xmonad.hs), the xmonad config archive (and the available docs from the root page on that site), and our own thread.  Unfortunately you'll have to sort of scrounge for good docs on the xmonad.hs at the moment, since most of the information was written for the 0.4 version of xmonad.  The configuration has since been made MUCH simpler.
    Hope that helps some.

  • Need some beginner help on formatting and images

    Just getting started with ID so am going through the learning process and could use a little help getting past some of the road bumps.
    Are ID character and paragraph styles similar in use and effect as those in Word? In other words, are there important differences in when to use text styles and paragraph styles? Do they cascade? Did I make a mistake by setting up two styles, one character and one paragraph, and applying them to a paragraph? Is there a good practice anywhere where you don't use a paragraph style to set character styling but instead use a character style and a paragraph style together?
    Get the idea? I'm looking for sort of an ID styling 101.
    Thanks in advance
    Tom

    No Style is not a style. It is a lack of style. It exists in the list of
    styles because there has to be something there to choose from when you
    choose to base a style on nothing, or when you want to *not* apply a
    paragraph style to a paragraph. When you don't want any style, you want
    no style (hence the name). The only time I deliberately apply No Style
    to a paragraph is when I want to "lock down" the formatting so that it
    won't change if I change a style (because No Style has no definition to
    change).
    Basic Paragraph is a special style that can't be deleted from the list
    of styles. For my books, I like to make a text style, give it a name
    like "text", and then base everything on that. As far as I can tell, the
    danger in basing everything on Basic Paragraph is simply that you may
    have it defined differently in another document and if you copy material
    from one document to another, everything will change (because everything
    is based on Basic Paragraph and Basic Paragraph is defined differently).
    Again, as far as I can tell, this is no different than having two
    documents, both basing everything on a style called "text" and defining
    "text" differently in those two documents. Either way, if you copy
    styled text from one document to another, you may see changes if the
    style exists in both documents and is defined differently.
    Your particular workflow depends mostly on the people you're working
    with. It's certainly possible to set up a Word template containing all
    the styles your writers will need and then tell them to use them. Then
    you won't have to do anything except Place the Word file. My experience,
    though, is that 99% of Word users don't even know styles exist, so this
    may require some education...
    In my workflow, I almost always get Word files after they've been
    written (and usually formatted to death). I Place Word files, keeping
    formatting, and then search and replace the formatting that I want to
    keep for styles and then select all and Clear Overrides. This way I get
    to keep the author's hard work but dump all the garbage the author
    introduced.
    Kenneth Benson
    Pegasus Type, Inc.
    www.pegtype.com

Maybe you are looking for

  • PC not detecting Pla

    I have a Zen Xtra 30GB and when I connect it to the PC and run the software it keeps saying that it may be busy or not connected, I have also tried dragging and dropping the files into the player with the same results. Also after a while it will exit

  • Best Settings for Exporting DVD Footage in a Movie File

    Hello, I've been trying to find the best settings for exporting DVD footage into a movie file from Adobe Premiere CS6. I recently have been using my Magnavox DVD recorder for recording VHS tapes that I made long ago for shows and various other things

  • Create Create table statement dynamicallly

    I am trying to create a SP that  return a "Create table  "statement dynamically using a table called "Employee" in database. How can I create a dynamic Create Table statement using sys.table? The create table statement should contains all the columns

  • How to handle error when importing taxonomy for product using XML?

    We are on MDM 5.5 and built a repository for SAP R/3 Material Master. It has basic material information and taxonomy information as well. We built an import map based on an XML file, which includes basic info as well as taxonomy (classification) info

  • Product name: HP Pavilion 15 Notebook PC, unable to take the recovery set using sandisk cruzer 32GB

    I am unable to take the recovry set through HP Recovery Manager by using New SANDISK CRUZER SWITCH (32 GB) It is prompting to insert the USB drive or Disks, once i insert the USB drive its not moving to further steps. Please rectify this problem Rega