A simple workflow process case

What I have done here is a very simple BPMN process with only one human task:
step1.when some delete the record>initiate a process instance.(new a request of deletion)
step2.Administrator login and discover the request,he could approve and reject it.
Following are the questions:
1.How could I pass the parameters to the process through coding when it's initiated, to tell the administrator which record to delete? i.e step1.
2.Assume I have not only one human task here, How could I tell the user logged in could do the operation to the task, such as submit,approve,reject? according to the task system attributes or the role or group he belongs to?

Hi Tom,
Are you working on BPMN? this is a BPEL forum.
-Yatan

Similar Messages

  • Simple Workflow proces

    I am trying to create a simple workflow process; using OW4J it starts calls a java class and then ends. The log tells me that is executing the item type however the class method is not being executed(nothing happens); no errors are being displayed. Has anyone tried to do this and if yes can you please post a quick sample or offer some guidance.
    Thanks.

    Hello,
    We are working on an integration project using interconnect 4.1 and workflow.
    In interconnect we use content based routing, for workflow we defined routing rules.
    When using the workflow integration we succeeded in receiving an event FROM
    interconnect TO workflow (WF_IN agent), when we complete the workflow proces (simple approve)
    we want to send an event back FROM workflow TO interconnect : but we don't know
    how to do this!
    - To which Agent do we have to send our event using the workflow builder (to agent, out agent?) ?
    - How do we have to define that agent (adress, Queue Handler, Queue Name, direction)?
    - Is there any documentation about this?
    Greetings,
    Jan Marckx Hi,
    I remember feeling your pain. Hope I'm not too late, or that you got it already.
    You sound like you already have two routing rules for your event
    APP1 -> WORKFLOW, WORKFLOW -> APP2.
    You need to create a process bundle in iStudio in Design mode with some Publish and Subscribe
    activities under it.
    In the Deploy tab, right click on Workflow and Deploy Event definitions to Workflow Bus. System
    and create the .wft file.
    Go into WF and check if the events show up in the Events page.
    Go into WF Builder and open the .wft file.
    Look for your Publish and Subscribe events in Processes and open the diagram.
    Click on the processes in the diagram to see the Event Name, Agent, Action etc. They should all
    be correctly generated) You need to look at the properties in the instance of the event (in the diagram) and not in the navigator.

  • Workflow process does not complete for 3500 but works for about 10 records

    Hi Gurus,
    I am a novice in workflow. Pls bear if the questions are very basic.
    We have a old custom workflow process which is inistaed by a PL/SQL procedure
    WF_ENGINE.CreateProcess ---
    WF_ENGINE.StartProcess ---
    COMMIT; ---
    Now this process has run for over 6-7 years but has always processed max upto 8 or 10 records at a time. Now we had about 4000 records in a table and the process was running for more than 4 days now and it has been termiinated.
    I could not see any new item_keys. Is it because we have a commit only at the end.
    This process has 3 sub processes. they are connected by 'AND' and then we have an 'End' node.
    The first sub-process is simple and we can see a record in wf_items .
    Howver no records are there in wf_items for the 2nd and 3rd sub processes.
    How can we check the point where it has hanged. Querying Status monitor just gives the first sub-process that has completed. How to debug for these cases.
    This has always worked for small volumes. Now we have about 4000 records and we face this problem
    The process actually checks data from the table and based on some conditions , it send 5 different notifications to 5 different mail groups. So we expect about 4000*5 mails to be sent.
    Any help is welcome.
    Thanks,
    L
    Edited by: 901929 on 20-Jul-2012 01:38
    Edited by: 901929 on 20-Jul-2012 01:39

    L,
    Please check the following:
    1. Since this is pure PLSQL you can have a SQL script where you enable a database event to get a trace and then run tkprof on the output to spot any performance problem. You can use something like:
    alter session set tracefile_identifier='Background' max_dump_file_size='unlimited' events '10046 trace name context forever, level 12';
    begin
    wf_engine.CreateProcess(...);
    wf_engine.StartProcess(...);
    end;
    commit;
    alter session set events '10046 trace name context off';
    select fnd_debug_util.get_trace_file_name() tracefile from dual;
    2. Do you happen to know if WF runtime tables are being purged regularly? If this is not done you can expect serious performance problems. If this is WF Apps embedded you need to clean data using the concurrent request Purge Obsolete Workflow runtime data, if not then you can use the APIs in package WF_PURGE.
    3. You will only find one record in WF_ITEMS for this process if those sub-processes belong to the same item type
    4. About the notifications, make sure you are not running into this design problem: https://blogs.oracle.com/oracleworkflow/entry/looping_within_a_workflow_process
    Regards,
    Alejandro

  • Studio Portlets - Workflow - Process Portlets

    Is there anyway to tap into the Workflow API for content server to provide something similar from Studio. We want to be able to have a form in studio be submitted to Person A via email wtih a link to the request. When the request is approved it's submitted to Person B vial email with a link to the request. Person B then fills the request. In this example it's ordering PDA's and Person A is the Cost Center Manager and Person B is from Telecommications. We want to also send an email back to the person who submitted the request each time the status changes or the order is filled so they know what the status of the request is. We have several other simlar process portlets that studio is a great tool for enetering the data for but lacks the workflow. I'm wondering if anyone else has been able to tie workflow into studio. Any other ideas outside of studio would be appreciated as well. A workflow framework would be great. We are using 5.02. and C#.

    Here's some information from the Plumtree Deployment Guide:
    Using Studio to Create Workflow ApplicationsUnlike Plumtree Content Server, Studio Server does not have mechanism for creating workflow templates that can be associated with a given database table or portlet. It is, however, possible to create portlets in Studio that simulate rudimentary workflows using the basic building blocks that Studio provides. The approach, in general, is to add various status and assignment fields to a Studio database table, and then to create various portlets and reports that filter records based on the values of these fields. Email notification can also be used to alert people when records are created or modified, thus alerting them to items that may require their attention.
    For example, imagine that we wanted to add workflow capability to a work order request system. Before having the operations clerk place the order for supplies, we want to first have the employee's manager approve or reject the request. Only requests that were approved would be subsequently processed. In this case, we would add two fields to the database table used by the portlets in the system - "Manager to Approve" (Portal User data type) and "Work Order Status" (Text data type with a value list containing "New" (the default value), "Manager Approved", "Manager Rejected", "Order Placed", and "Order Delivered"). In the data submission portlet used by employees to submit requests, the "Manager to Approve" field would appear on the request form, while the "Work Order Status" field would be hidden. We would also want to create a notification rule for the form, so that an email gets sent to "Manager to Approve" so that they would be alerted to a new order requiring their attention. Next, we would create a new record browser portlet called "Work Orders to Approve" with a report that listed records where the "Work Order Status" field value was equal to "New" and the "Manager to Approve" field was equal to the value of the currently logged in user. We might also specify permission on the portlet so that it is visible only to managers in the company. When a manager views this portlet from a my or community page, it would list all the work orders with approval pending. They could then open these records, and change the status to either "Manager Approved" or "Manager Rejected" as necessary. Similarly, we could also change the record browser portlet used by the operations clerk who places the orders to only display those records where the status was "Manager Approved."
    In this way, using email notifications and filters, in conjunction with assignment and status fields allows us to simulate simple workflows with Studio.

  • FTP error in oracle workflow process

    Hi All,
    I have written a workflow process which deletes a file on FTP. The process is deleting the file but is showing a warning message. Does anybody have a idea regarding this. One more thing even if file is not found the process completion status is successful. Its status should be error.
    The ftp site is on the same machine as owb server.
    The following values have been passed
    Command: ftp
    Parameter List: /-A/localhost/
    Success Threshold: 0
    Script: delete filename
    Output Message Received:
    Starting Execution ETN_DELETE_FILE
    Starting Task ETN_DELETE_FILE
    Starting Task ETN_DELETE_FILE:FTP
    Completing Task ETN_DELETE_FILE
    Anonymous login succeeded for [email protected]
    WARNING: Log file truncated - see RAB for further information.
    Completing Execution ETN_DELETE_FILE
    Please let me know about this.
    Thanks & Regards
    Bang.

    I am not saying your method is not correct, but if you give a shot to go with User Defined Activity. Yep that's correct , just write line in a shell script and call that script in user defined activity.
    Property values
    command ksh
    script     pathname with that script file name (/tst/usr/script/filename.ksh)
    or
    command     mv
    parameter_list     pathname with that filename
    I feel this is very simple and easy to manage too.

  • Using in workflow process the element of Account dimension with subordinate

    Good day All
    In the dimension Account has been created element, which contains several shared elements. This element has been added as a Parent member when creating a Planning Unit Hierarchy. When we run the workflow process the child shared elements still open for editing for all users.
    May be we can’t using shared members in this case?
    Thanks

    Are you the one who commented out the code you're looking for ?//String desc = StringFactory.getString(attributes.getValue("desc"));You just have to modify you AttributeObject class to hold a new field : String description. And then, it's up to you to create a new constructor or a new setter method.
    Btw, this is not a Swing related question.

  • Error developing a task for workflow processing

    I made a very simple workflow to try to process an IDoc. First I took a look at what seems to be the SAP standard example of a workflow that processes IDocs (workflow WS20000378 - ORDERS - Incoming orders with workflow), tested it to verify it works, then took one step from that (the step that processes the IDoc) into a new workflow, checked the bindings between workflow container and task, then activated it and bound it to an inbound process code.
    When I try to process an IDoc using the test tool, after setting up the partner profile correctly, it informs me that:
    "IDoc inbound: Container definition for task WS90100001 has errors".
    And the exact reason stated is:
    (1) : The container definition does not contain the parameter 'IDOC_PACKET'.
    (2) : The container element is not defined as an object type.
    (3) : No object type could be determined for the container element 'IDOC_PACKET'.
    Well I had already added the element IDOC_PACKET to the workflow container, and I have checked that it is defined exactly the same way as for the example workflow, but it just doesn't work.
    Any suggestions how to proceed?
    Kind regards,
    Tony.

    Hi Tony,
    Sounds odd, should work. Just to discount any buffering, run tx SWU_OBUF and click on refresh. Failing that, try logging off from SAP and back on (don't laugh, it's done the job for some bizarre ones before).
    Alternatively, copy WS20000378 (which works) to a new flow and delete all the steps you don't need.
    Cheers
    Mike

  • Simple workflow question

    Hi,
    I started implementing a simple workflow and now I have a problem and I don'z know how to solve it using the technology of SAP-workflow.
    I created two workflows in SWDD (WS...). The first workflow calls the othe workflow in a special case. This is done by using a standard link with a activity (linked to WS instead of TS).
    Now I want to have that all the activities implemented in the second workflow should be done by one user of a group of user.
    The problem I now have is that in every step of the second workflow (e.g. user decisions) I have to set the agents. In my case this is a group of users. So the problem occurs if agent A1 makes the first descision, another person B2 can do the following steps of this workflow.
    What I want to have is something like "a workitem with several steps included", that means when agent A1 selects the workitem, the following steps should only go to this agent and not to every agent that is in the group of persons for that task.
    Hard to describe I think. I hope you understand what I tried to mention here...
    Thank you for your support!
    Markus

    Hi.
    I am not sure if I understod correctly, but maybe I did.
    First step: I assume that you have several agents for this step, and anyone can execute it? Well, you can bind the container element actual_agent from this step back to the workflow. The actual agent will be the user who completed the work item (or step). You can bind the element to for example an element called LastAgent (that you need to create to your workflow container).
    Following steps: Instand of using the same rule (or agent finding logic) as you did in the first steps, you can now use an expression in the agent determination. And the expression should be now the LastAgent. Easy.
    Now all the following steps will be seen only by the agent who completed the first step.
    Regards,
    Karri

  • Configuring workflow for case management

    Hi
    My requirement is to copy the standard workflow for case management WS01700044 and add few things once the case is processed.
    Now my problem is, how do I configure this new Z workflow in the SCASE. So that once I save the case, I should be able to start the workflow I have created.
    Currently only 2 workflows are listed for case management.
    1. WS01700051
    2. WS01700044
    I want three workflows to be listed.
    Do we need to configure the newly created workflow in SPRO under case management? Please guide me.
    Thanks in advance.

    Hi There,
    The workflow in case management is triggered by the event BUS2022.NONPROFESSIONALUSERSET which is the same trigger that invokes WS01700044. You will first need to disable that trigger (open that workflow and remove the trigger (the first node in the workflow)). I would then add that trigger to your new Z workflow and that should do the trick.
    This is the best way to do it rather than looking in the IMG.
    Hope that helps,
    Brenton.

  • Creating a thumbnail within a workflow process

    Hi,
    Within my workflow process, I want to create thumbnail images of the files/documents that have been uploaded in a page through the out of the box 'Download' component. I want to store these thumbnails on the same page(within /content/mypage). As far as I know, the logic of thumbnail creation of an uploaded files is already available in the DAM. On further probing, I got to know that the thumbnail creation is done as part of a workflow and the workflow process is 'CreateThumbnailProcess'(com.day.cq.dam.core.process.CreateThumbnailProcess). So I tried creating an instance of the CreateThumbnailProcess and calling the execute() method of this process within my workflow process. Here's a glimpse of what I did.
    public void execute(WorkItem item, WorkflowSession session, MetaDataMap args) throws WorkflowException {
         CreateThumbnailProcess proc = new CreateThumbnailProcess();
         System.out.println("Test Workflow entered!!");
         proc.execute(item, session, args);
         System.out.println("Test Workflow executed. Thumbnail created!!");
    But when I start my workflow, I keep getting "Test Workflow entered!!" multiple number of times on my console. I am unable to understand what's happening. Please help me. If there are any simpler alternatives to create a thumbnail, please suggest them too.
    Thanks in advance
    Shriram K M

    Ok.
    So couple of things which you can try out to check what's causing the issue.
    1. If you comment
         //proc.execute(item, session, args);
      does it still causing the same issue. If yes, then problem would be somewhere in your workflow call or process execution which calling this process recurring (i can assume as not see the whole code) and, if not, then this call is only causing the issue which is pretty wierd (looking into possibility and will update you) if you do not have extended the same process as you mentioned above.
    2. Not sure calling another process like this is correct way to do it because CreateThumbnailProcess automatically gets called in cq when image object created in system to create default renditions.
    To answer you other question.
    creating extra thumbnail apart from default renditions you should have to create workflow process as you already did but extend AbstractAssetWorkflowProcess (dont call CreateThumbnailProcess.execute() because there is default workflow process already setup.) and below code in execute method
    Asset asset = getAssetFromPayload(workItem, workflowSession.getSession());
    oriIs = asset.getOriginal().adaptTo(Node.class)
                                .getProperty(JcrConstants.JCR_CONTENT + "/" + JcrConstants.JCR_DATA).getBinary().getStream();
    asset.addRendition(rendition, oriIs, mimetype);  //mimetype and rendition you have to create it as an object based on your requirement.
    also check http://dev.day.com/docs/en/cq/current/javadoc/com/day/cq/dam/core/process/CreateThumbnailP rocess.html for more detail.
    Let me know for more information.
    Thanks,
    Pawan

  • Custom Workflow Process

    Hi All,
    I am trying to integrate the custom UI with human workflow process. Once the human task is initiated in BPEL, the workflow reference links in the email generated should point to custom UI links.
    I have developed the UI application where the user can approve or reject the any transaction. Once the user approves the task the control should be sent back to BPEL process with the outcome.
    If the above case is possible, could anyone please provide me some pointers or documentation.
    Thanks
    Ramana.

    Hey,
    Thanks for the reply. I guess I didn't put my question clearly. What I am trying to achieve is different.
    Here is my question:
    Usually for the Human Task activity the owner can approve the task going to URL (http://host:port//integration/worklistapp), but in my case I want to use custom UI instead of standard worklist app url.
    In the custom UI user can approve and the approval information is sent back to BPEL human task and I will proceed further with other activities after the approval. I am planning to use portal applications for custom UI.
    Thanks,
    Ramana.

  • Workflow Process Manager - Could not route message to WfProcMgr with regist

    Hi,
    We recently started getting a strange error in our DEV environment:
    Could not route message to WfProcMgr with registered key (null)
    This is happening with the Server Component, Workflow Process Manager, and all services associated with this.
    We are using Siebel v7.8.2.8. If anybody can provide any pointers, it would be of great help!
    Thanks

    Hi Trym,
    Thanks for your time!
    The target workflow that I am triggering from the WfProcMgr is a custom workflow and it does not have a BO defined. So, the Object Id should not be a mandatory field (I am in any case, not passing any Object Id). Nevertheless, whether I have an Object Id or I do not, I would assume that the Workflow would at least get triggered. I donot see as to why the Workflow would not trigger at all.
    Though Siebel does act weird at times, I think the error I am getting is still somehow related to the actual cause! I would really like to understand as to where is this Registered Key stored in Siebel that it is continually searching for.
    *When you say "Workflow Process Manager server component directly" do you mean like in a eScript
    call in e.g. a Business Service?*
    Please refer the second part of my previous post for this. I am trying through Server Requests BS and through Workflow Policies.
    Thanks.

  • Error when executing external workflow process

    OWB 9.2 with server on Windows NT.
    I can successfully execute a mapping workflow process from the deployment manager, but I get an error when executing a simple external process:
    command: move
    parameters: ?c:\\data\\owbtest\\src.txt?c:\\data\\owbtest\\trg.txt
    Resulting output:
    Create Process: move c:\data\owbtest\src.txt c:\data\owbtest\trg.txt error=2
    File c:\data\owbtest\src.txt exists.
    My questions:
    1. What am I doing wrong?
    2. What does error=2 mean? Is this a Windows error?
    3. Do I have to configure some location for the process? What does 'use default location' mean for the configuration property Working Location? Is a host-logon performed before the host-command is executed?
    4. Is there logging available for an external process? In the workflow tables or views?
    5. I can't find much documentation for these questions. Is there more documentation than the OWB user guide and the OWF guide?
    Jaap.

    It seems that commands that are not an executable in some directory, but are part of the Windows kernel (like 'move'), need to be started as a parameter of the cmd command. I did this and now it works fine.

  • Simple Workflow step...

    Hi,
    Can someone tell me steps to crete a simple workflow which will just send email in my sapoffice inbox when I run it ?
    <b>No links please..(I already know thsoe links)</b>
    Appreciation will be surely done by awarding points...
    Thanks.
    Regards,
    Tushar.

    Hi,
    <b>Step - 1 - To create a Workflow template</b>
    1. Open transaction <b>PFTC_INS</b>
    2. Choose Task type as Workflow Template.
    3. Click Create Button.
    4. In the Basic Data tab enter abbrevation (usually user defined name) in the ABBR field. Enter name of the workflow.
    5. Click on the Container tab, Click Create Element Button. Enter the Name of the container in the new screen, Element (name) and desription.
      in the D. Type tab Choose Object type as BOR OBJECT TYPE and enter BUS2032( Business obejct for for sales order).
      In the properties tab check the following checkboxes,import, export,mandatory checkboxes.
    6. in the triggering events tab choose Object category as BOR Object type and BUS Object as BUS2032. Now open the F4 help screen for Event field and choose CREATED event.
    7. Click the button (Event Creator) with diamond image on it. This will save and activates the evet. Now Choose the record in the table control and clikc the Green color button with quick info as Call Binding editor. This open the bindign editor where you can bind your event with the Container created in the step 5.
    8. Now save the workflow template.
    9. Click the Additonal Data->agent assignment->maintain. Now click on the Attributes button on the application toolbar and define the attributes for the workflow template. Define the workflow template as Generic.
    10. Now save and exit the transaction.
    <b>Step - 2 - To create a Standard task.</b>
    11. Open transaction <b>PFTC_INS</b>. Choose Task type as Standard task and click the Create button,
    12. Enter values in ABBR and Name fields. In the Work Item Text, enter the text that should displayed as Subject of the mail. for example : A new Sales Order is created.
    In the Object Method - Choose the Object category as BOR Obejct type.
    Object Type as BUS2032 - for sales Order
    Method  - as Display ( this will display the sales Order to the concerned user).
    In the execution - Click Background processing and Confirm End processing.
    13. In the Container tab - create a container. as expalined above. This container can be used for later purpose also.
    15. Click Additional Data->agent Assignement->maintain. now choose the Assign agent button and assign a USer for the task. This user will receive the mail.
    16. Now save and exit the transaction.
    <b>STEP - 3 - Attach the Task to the Template.</b>
    17. Open Transaciton PFTC_CHG. Enter the Workflow template number generated in the first step. Choose the Task type as Wrokflow template.
    18. Click the Workflow builder button. Now you can c the flow of the transactions. Right click the Undefined task image and create a task. Enter the task number generated in the Second step. save the workflow template.
    <b>STEP -4 - Execution.</b>
    Create a sales order and check whether a mail is generated. You can view the mail in SBWP. ( SAP Business WorkPlace).
    Regards,
    Vara

  • Cannot execute workflow process definition

    Hi,
    I am new to Siebel. We are researching on Siebel Public Sector Case screens.
    I have installed Siebel Client & Tools and defined the Debug configurations in the Tools. When I hit F5 in Tools, the Client loads. However, when I click on the Eligibility button on the Case screen I am rendered the error: *"cannot execute workflow process definition 'PUB Eligibility Determination Workflow'. (SBL-BPR-00158)"*.
    Browsing through the Administration - Business Process -> Workflow Monitor, I noticed that none of the Workflows (available in the Tools) are getting displayed. Please let me know if there is any configuration that I might have missed out.
    Thanks in advance.

    Hi,
    In case this is a new installation of Siebel, by default Workflow processes are not activated on the Server. As a result you will face the mentioned error.
    In this case just go to the Administration - Business Process -> Workflow Deployment -> Repository Workflow Processes and in the top applet query for the Workflow causing the error. Also query for the same in the lower applet as well. If there is no record in the lower applet or if the Repository Version in the lower applet is not matching to that on the upper applet, you need to click on the Activate button on the Top applet to enable the latest version on the server.
    By Check In process it means that you check-out i.e. lock a particular object for exclusive modification and then checking it in i.e. publishing the changes onto the server for all the other developers.
    With Regards,
    Tanmay Jain

Maybe you are looking for