Two Workflows in Sequence

Hi Experts ,
I have requirement of having two workflows at two consecutive phases one after the other.
Like if my phases are a b C D e .
I am having workflows at C and D .
Problem I am facing is  ,if the workflow at Phase C gets approved it shall move to Phase D and It is rightly moving and adding the approver which I am picking at workflow D by pre script , but it is not locking the document though the Approver is getting the option to approve or reject the document at Phase D.
Prescript of XPDL at C at Approval activity is  : Pick the owner of the document and add as approver
Postscript of XPDL at C:If approved go to Phase D for this the code is like
if (getApprovalStatus() == APPROVED)
    home = doc.getIBeanHomeIfc();
    home.upgradeToEdit(doc);
    home.changePhase(doc,"D");
Prescript of XPDL at D at Approval activity is :Pick some other collaborator role of custom type
Postscript of D:If approved go to Phase e for this the code is like
if (getApprovalStatus() == APPROVED)
    home = doc.getIBeanHomeIfc();
    home.upgradeToEdit(doc);
    home.changePhase(doc,"e");
What I feel is like in Postscript of C the document is being brought to edit mode to change phase of the document then phase change is taking place and since one more workflow is attached it is executing the prescript of it first i.e picking another approver and adding as approver but not locking the document.
I tried using the following code after changing phase in postscript of C hoping it might help in locking the document!.But it din't help me still.
home.save(doc);
home.downgradeToView(doc);
Any help wud be gr8!
Regards,
Uday

Thanks Baski n Rob,
I have already tried the other two ways mentioned and one more option feasible for me was , of introducing one more phase in between. I am waiting for the client's call .
When I tried second option i.e locking the document ...it does lock the document and doc wud go for approval but no one can approve or reject the document because system is throwing error message saying document was locked by so n so person and you cannot edit it!..
So I am left with two options!.
Noppong , technically I think that might happened because we are using changePhase method which changes phases internally via the configurable phase handler so since it is like we are using coding and not changing phase manually to the workflow attached phase ..the document is in edit mode.. That's what I think!.
Regards,
Uday

Similar Messages

  • Two workflow Mailers for different users in Oracle Apps 11i

    Dear All
    Is it possible to configure two workflow mailer and assign to specif list of users on specific workflow mailer.
    Regards
    Aamir

    Is it possible to configure two workflow mailer and assign to specif list of users on specific workflow mailer.No -- You may log a SR to confirm this with Oracle support.
    Thanks,
    Hussein

  • Assining same condtion tables to two diff access sequences

    Hi ,
    Can we use same condition tables with two different Access Sequences. These two different access sequences will be assigned to two different Contion types.
    rgds
    Siddharth

    Hi,
    Now if your multiple condition types are getting satisfied by a single table, then it's up to you can have that table in a single access sequence or multiple.  Ideally it should be through a single access sequence only.
    As stated earlier also, its completely depends on the criteria need to satisfy condition as per your requirement. B'coz there are possibilities where a single condition can be triggered on different criterias, in that case it will required multiple tables. In such scenarios single table may exist in different Access sequences.
    Best way if u are still not satisfied with the response to your query, If I would have been at your case, I would have learned by trail and error.. it will hardly takes time of 1 two 2 hour for creating  new access sequences and test the scenario.
    It's quite possible that words some times don't clear your doubts but when you will try with our guidelines on the system it will surely clear your doubts more appropriately.
    Thank You,
    RB
    Edited by: RB@007 on Dec 10, 2010 8:34 AM

  • Event is triggered once, but two workflow instances start

    Hello all,
    I have a workflow that is triggered by the event ISUSWITCHD.Created.
    Unfortunately two workflows of the same version start on this event.
    This event is triggered only once according to SWEL.
    i have already copied the old workflow pattern (deactivated) and created a new pattern. Problem still exists.
    There are no double entries in SWETYPV also.
    Is this a Basis problem?
    Any help is aprreciated,
    Bye,
    Holger
    Edited by: Holger Reimer on Sep 20, 2010 9:43 AM

    1. Go to the transcation SWE2 and check whether there is entry for the same workflow two times. If yes then check for what 
        other event the same workflow is being triggered.
        Create a check function module to test what was the actual triggering object.
    2. If there is no such entry then check through out the code whether that worlflow is being called through a function module or  
       not. If that is being callde by a function module then the the SWELS cannot trace the triggering of the workflow and the
       workflow will be trigered.
        If such type of entry is still not there means  that the code does not contain any FM that will trigger the workflow then check 
        for it.
    3.Go to the transcation PFTC.
       Give the workflow number and choose the workflow template. There you can check wherther any other event is assigned to  
       the workflow. If yes then trace that and deactivate the linkage if it is not required.
    Thanks!

  • How to merge/append two files in sequence using BPM

    Hi All,
    My senario is to append two files data into a  new file on target system, only if the two files are available on source system. In case one file on the source system, no need to process file. Data in the new file should be in sequence means 1st file data then 2nd file data.
    Please suggest me how can i achieve this functionality using BPM.
    Thanks & Regards
    Sreeni

    For the first part (two files required) design as per Prateek's suggestion
    Data in the new file should be in sequence means 1st file data then 2nd file data.
    create a data structure which will be a combined structure of File1 and File2....target structure should have first reference for File1 and then for FIle2....than having two MTs (File1 and File2) at the source and the target MT at the receiver create your mapping......this will ensure that File1 data occures first and then File2 data.
    Regards,
    Abhishek.

  • Two transformations in sequence in BPM

    Hi ,
    I am trying to add two transformation steps in sequence one after one in my BPM scenario.  In the second transformation step I have to use the first transformation’s output. But it is giving mapping error in BPM at runtime.
      Is there any tricky way to use this kind of scenario?  Do I need to add any assignment step in between these two transformation steps,  to take the output of first transformation as input to the second transformation step?
    Instead of creating two transformations (two maps), I can use directly only one transformation (one map with directly source structure to target structure).
    Thanks.
    Siva Rama.

    Hi Siva,
    Have a look at the following links:
    http://help.sap.com/saphelp_nw04/helpdata/en/62/dcef46dae42142911c8f14ca7a7c39/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/27/db283fd0ca8443e10000000a114084/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/41/e3d13f7fb44c21e10000000a1550b0/content.htm
    Hope this helps.
    Cheers,
    Chandra

  • How to synchrorise two workflow tasks/calls?

    Hi all,
    We are writing a Workflow client application (in Java) and having problem getting valid state of the workflow because of the delay in PL/SQL API.
    Here's are two example:
    1) First we respond to a notification (using WF_Notification.Respond). After the Respond call has returned, we use a new transaction to scan the table for open notification for the user.
    We got back the responded notification as open notification as the table values have not been changed.
    We found that the table values will only change after a certain period.
    2) Expedite the process
    First we call the handleError API. Then read the table for activity statuses. Again, the table values are not updated even the handleError API has returned. We need to wait for 1 or 2 sec before the table are in valid states.
    Anyone know how can we synchorise these? May be there's a flag we can set to force the API blocks until it completed processing or a flag we can check to find out the status of the last API call.
    Thanks.

    I had similar issues when I developed a workflow portlet. I maintained a record of recently actioned notifications and hid them from the user for the next few requests.
    Regards,
    Mark

  • With single trigger, I want to acquire two channel in sequence

    I wanted to observe the sequence of  effects on more than two channels with respect to a single trigger input. And also I wanted to measure each channels with different " number of samples". For example Firstt channel with 10 samples and second with 500 samples. How I can implement this on PCI 6034 and USB 6008 DAQs 

    The 6008 has only very basic functionality.
    I would say to achieve the results you want you will need to add multiple channels to a single task, all at the same rate, and only extract the data you need.
    That way all channels will be synchronized.
    I don't think the 6008 can even do correlated digital-analog I/O or trigger off an input channel.
    I don't have any experience with the PCI 6034, but if you only need 500 samples then the method I mentioned above should work regardless.
    Troy
    CLDEach snowflake in an avalanche pleads not guilty. - Stanislaw J. Lec
    I haven't failed, I've found 10,000 ways that don't work - Thomas Edison
    Beware of the man who won't be bothered with details. - William Feather
    The greatest of faults is to be conscious of none. - Thomas Carlyle

  • How to compare two workflow files?

    Hi All,
    Is there is any way to compare the two version of the workflow file to find out the exact differences?
    Thanks,
    Arun

    Hi Srini,
    The diff command is working but it is having its own issues.
    e.g. I compared 2 wft files but the output is having a glitch END ACTIVITY which must come at the end of the file is coming in between the file in which I am stroing the difference. (marked in bracket for your ref).
    Is there any way to overcome this issue.
    diff A.wft B.wft >> TESTDIFF.TXT
    3434,3443d3433
    <
    < BEGIN ITEM_ATTRIBUTE "TP"
    < PROTECT_LEVEL = "20"
    < CUSTOM_LEVEL = "20"
    < DISPLAY_NAME = "TP"
    < DESCRIPTION = "TP"
    < TYPE = "VARCHAR2"
    < FORMAT = "78"
    < VALUE_TYPE = "CONSTANT"
    < END ITEM_ATTRIBUTE
    38211,38225d38200
    < [END ACTIVITY]
    <
    < BEGIN ACTIVITY "POAPPRV" "MYFUNC"
    < PROTECT_LEVEL = "0"
    < CUSTOM_LEVEL = "0"
    < DISPLAY_NAME = "My Function"
    < DESCRIPTION = "My Function"
    < TYPE = "FUNCTION"
    < FUNCTION = "My Function"
    < RESULT_TYPE = "*"
    < RERUN = "RESET"
    < COST = "0"
    < ICON_NAME = "FUNCTION.ICO"
    < ERROR_ITEM_TYPE = "WFERROR"
    < RUNNABLE = "Y"

  • How to merge/compare two workflows.

    Hi there!
    Is there a way to merge or compare two Oracle Workflows - to find potential differences?
    If you use a regular text compare, it's pretty hard to get an overview over what's been done..
    Kind Regards, Henrik

    Post your query in Workflow forum to expect response. Follow URL
    Workflow

  • Two workflow questions, (1) importing and (2) saving/exporting

    Apologies if the below questions are too elementary. I've just started using Lightroom. I've been trying out various editing/organizing programs and I haven't yet found the perfect one. Can someone tell me if Lightroom is capable of the following:
    1. I shoot in Raw+Jpeg format. When I copy images from my camera to my computer, I always create a new folder that represents my event and put the jpegs in \Pictures\[Event]\ and the raw images in \Pictures\[Event]\Raw\. Is there a way to instruct Lightroom to perform this function through the import module, i.e. have a single import event that copies jpegs in an \...\[Event]\ folder while copying dng to \...\[Event]\Raw\ and importing only the dng files into my Lightroom catalog. Is this possible?
    2. Also, can someone explain how Lightroom handles edits? Say I've edited a dng in my library. Is the dng file changed on my computer itself? How about the jpeg (remember, I copy jpeg+dng to my computer)? Is there a way to instruct Lightroom to automatically (i.e. default behavior) overwrite the jpg file when any changes are made to the dng file, but prevent the dng file from being overwritten? What about instances where I also want to overwrite the dng - how do I accomplish this?
    Thanks.
    =|

    theNE0one wrote:
    I completely understand and appreciate how Lightroom treats raw images. However, if I shoot Raw+jpg, what difference does it make whether or not the jpg file changes? If my raw file is untouched, I don't also need to make sure that the jpg remains in its virgin state...even if the majority of users prefer to keep both untouched, at least allow the option for people that want a different method of handling their files!
    Lightroom has no feature to overwrite your JPGs automatically.
    Might I suggest a workflow change ... shoot raw only, when you need a .jpg, have Lightroom export one for you.
    If Lightroom handled Face/Places/Sharing well, I wouldn't need to mess with a second program (i.e. Picasa), but right now it doesn't look like it can handle what I want. I understand that I can use Metadata/Keyword tags to identify People and Places, and that there are plug-ins to upload to Picasa web albums, but these options aren't executed well enough in LR3 for me to give up Picasa. The plug-in doesn't work nearly as cleanly as the native Google program, and "Faces" is a chore in Lightroom. Picasa can automatically detect faces and makes tagging/organizing/working with images much easier. While I'm on the topic, can anyone explain why such a useful feature (that's available on free and basic image software) is not included in Lightroom? Is there any possibility that it'll be included in the final version of LR3? What about the upcoming Aperture 3? Is it that "Faces" is perceived as a basic consumer feature that isn't used in higher-end software? Will this always be excluded from this "class" of software?
    Using LR3 Beta to decide whether the software works the way you want isn't a good idea. I'm guessing, but I don't know for sure, that the uploading to Picasa will work a lot better in the finished product. Hard for me to imagine a program being easier to tag/organize than Lightroom, and while I don't use Picasa, I can't see how it could be easier in tagging and organizing. It is my opinion (and you might think differently) that using two different organizing software programs on your photos is more trouble than it is worth, especially since you have to constantly "synchronize" the two different organizers.
    No one here works for Adobe, and even if there was someone here from Adobe, they can't tell you what will be in future releases. We can only guess, and we don't know.
    Finally, can you explain xmp? I've done some keyword tagging on my images within Lightroom. If I were to later use another program, would the keywords be picked up? From your explanation it sounds like there are two aspects to a file, the image section and the xmp section. Is the xmp section the part that includes information about the photo? I.e. settings, metadata, etc.??
    Keywords that Lightroom writes to xmp should be readable by almost every other photographic application. But please be aware that Lightroom, by default, does not write keywords to the photo files. You have to specifically tell Lightroom to do so, by either turning on an option, or by using Ctrl-S on selected photos. Xmp includes all the metadata, which includes captions, keywords, Lightroom edits, and basically any information supplied by the user rather than by the camera.

  • Two files in sequence - BPM co relation error

    Hi Alll,
    I have a simple query..
    There are two files of different structure a.xml and b.xml
    I have to process file a.xml and then b.xml
    In the comm channel I have given *.xml
    I am using a BPM for this...
    I have used a rcv step .. send step .. wait and then a rcv step and a send step...
    The second rcv step askd for a corelation whereas I am not collecting the files I am just simply instantiating the intefaces so a.xml runs first and then b.xml...
    Ne idea on how to do this?
    Regards,
    teja

    Hi Prateek,
    This is actually a file to rfc scenario where file a.xml is sent to rfc and on receiving the response from the rfc we have to run the b.xml file...
    so I tried the bpm... but the second receiver in the bpm is causing the issue... ne idea on this?
    so my bpm look like this
    rcv - > synch send -> send   -> rcv - > synch send- > send
    Edited by: Ravindra Teja on Nov 1, 2011 8:42 AM

  • Is it possible to use two workflows in one document library?

    The process is, the first person create document, then assigned another user to complete it and lastly send for approval. I had try to use three state workflow, however, it does not meet my requirements. and also, I tried to create workflows using SharePoint
    Designer but the workflows did not work. 
    Thank you in advance for your answers :)
    Azuaniza Ariffin

    I had tried your suggestions but the creators of the document will be the first person to receive the email. as example, I am the one who create the document. then I receive the email which require me to edit the document. once i submit, it will send it
    to second user. is it how this three state work?
    because what i want is, the creator of the document will send it to another user and the email will send to the user which require them to complete the form before send it for approval.
    if i'm wrong, correct me. I am newbie with this sharepoint :)
    Azuaniza Ariffin

  • Pass values between two workflow steps.

    Hi,
    I have requirement to pass values from one workflow step to another workflow step .
    1. In workflow step 1 , we have created dynamic user group.
    2. I need to get user group name in another workflow step.
    Thanks
    Ravindra

    First of all if you want to pass custom property to next step then you have to customize the current and next step (if you can it as process step). As of now i can think of one approach by setting up value in meatdata of next route as below in your execute method (if there is only one next step not with "and" or "or" condition otherwise you have to use id or name to find out next step).
    first step
    List<Route> routes = session.getRoutes(item)
    Route route=routes.get(0);
    route.getDestinations().get(0).getMetaDataMap().put("key", value)
    session.complete(item,route);
    destination step
    MetaDataMap map=item.getWorkflowData().getMetaDataMap();
    map.get("key");
    You can try once to check if it works else check through session. Let me know if it doesnt' work for you.

  • Same files, two different play sequences

    This is probably a stupid question, but I don't know DVD Studio that well.
    The situation:
    I have 8 separate video files.
    They need to be able to be played individually (coming back to a menu at the end of each video), and to be played through completely (when a "play all" button is selected).
    I want to reference the same files to keep the highest quality.
    Help?

    There is something called "end jump" or something (my version is in French, can't tell you for sure).
    This is where you tell the DVD where to go when it's finished playing (example : go back to the menu, or jump to the next of your 8 tracks)
    There is another thing called a story.
    Here, you tell what chapters the DVD should read in an alternative order.
    So maybe we can imagine that you have chapter markers almost at the end of each track.
    You make 8 stories (that's the way it works) in which you drag the first chapter of each track (remember, the second chapter is only a few frames, it's almost at the end). So when a story plays, it only plays most of the trak.
    Then you tell it what to do when it gets to the end of each story (made up of most of each track)
    What you tell it, is to jump to the next story.
    So this is your architecture :
    Tracks 1 to 8 have chapter 1 and 2 (2 being almost at the end) and at the end of the track it jumps to the menu
    Stories 1 to 8 which only contain chapter 1 from each track and who jump to the next story at the end.

Maybe you are looking for

  • Video player, Is this a good project for Flex.

    I am creating a video player similar to BrightCove player ( http://www.brightcove.com) and also allows viewers to dynamically change the skin with CSS files (text file) at runtime. Is Flex a good choice for this project? Thanks

  • BURN A NEW CD-R - PLAY IN AUTO STEREO , BUT TRACKS CHANGE HIT & MISS

    OK, I am a 8 as far as computer stuff.... Years of this Guinea Pig treatment from computer companies. Something sooo simple right? I burn a CD-R using itunes. The burn goes without a reported hitch. When I play the CD-R in my auto stereo and the ster

  • Large number values shown as blank?

    Values larger than 2147483647 seem to be displayed as blank in the data grid view. When you click on them to edit, the correct value shows up. If I then press Escape, the value disappears again. Is this a bug or a preference setting I haven't found y

  • Knowledge articles user roles

    Hello all, I have a support group that need the access/rights to create/publish knowledge articles. What is the best user role to use in this case? Regards,

  • Unable to edit a fill form PDF on my andriod

    Why can I edit a PDF fill in form on my laptop but cannot edit the sync file on my mobile device? Certain blank fill in form PDF's will allow edits on both devices, but any PDF fill in form that I have partially completed will not allow me to then ed