Process flow email task

Hi all,
I have a scenario like i am running one process flow which is having 3 maps. I needs to send out email for the below condition.
1.If there is no record in the source.
2. If there is no record in the target.
I want to implement these scenario in the process flow and not in the map level.
Could you please help in this scenario..
Thanks in advance,
Ashis

Hi,
I have the same scenario. I have written a function, it returns a boolean value 0 or 1.
For the transition operator i took a complex consition, but it is not working.
My function looks like this
CREATE OR REPLACE FUNCTION err_message(result OUT number)
RETURN NUMBER IS
L_MESSAGE VARCHAR2(200);
BEGIN
L_MESSAGE := 0;
SELECT distinct(run_error_message) into L_MESSAGE
FROM owbrep.rab_rt_exec_act_run_errors
WHERE ERROR_TIME = trunc(sysdate)
IF L_MESSAGE ='ORA-12541: TNS:no listener'
THEN
RETURN (1);
ELSE
RETURN (0);
END IF;
END;
function in the process flow always returns 0 even the condition is satisfied.
any suggessions.
Thanks in advance.

Similar Messages

  • Process Flow - Email

    Hi!
    I need some assistance regarding my email process flow.
    Lets say I have process flows. One process flow runs a single mapping . If it ends in error it launchas another process flow.
    This other process flow is my email process flow. Its just a process flow(killing my self writing process flow) which just sends out an email.
    So if my 1st PF is failed, I get an email.
    What Im trying to do now is use global variables. So I have a varible in my PF1 with value = Error in PF1. And I now want to bind this variable to my EMAIL variable in my EMAIL PF.
    This means, if PF1 Error = Send this varible into PF2.
    I have tried using IN/OUT parameters, trying to bind variables.. But I cannot get to to bind my EMAIL variable to my PF1 variable.
    Any sugg?
    Cheers

    If PF1 and PF2 are sub-process flows of e.g. PF3, then it should be possible to just use the variable i.e. on the START operator of PF2 you can define a Process Flow Parameter (IN), it should then be possible to bind the Variable to the parameter of PF2.
    Sounds like you're nearly there from what you've tried.
    Si

  • BUSINESS PROCESS FLOW (BPF) TASK SETUP - CURRENT VIEW OPTIONS

    This article explains a few findings regarding the options on Current View Type for setting up Business Process Flow tasks and will discuss BPC for Excel, Data Manager and BPC Web tasks.
    Future posts will cover more tasks.
    This is valid for 5.x versions only.
      IMPORTANT NOTE:
    DATA MANAGER PACKAGES
        Data Manager Packages tasks such as Run Specific Package, Run User Package are not integrated
        with the Current View Type selection. Therefore, the options Inherit from Data Region, Inherit from
        Current View or Member Lookup does not work on Data Manager Packages. This is due to the diversity of Data Manager Packages, such as Import, Export, Clear, Default Formulas, each of them requiring a complete different set of parameters, some of them not related to the Current View.
    1. INHERIT FROM DATA REGION
      Once you choose to Open a BPF from BPC for Excel, you are prompted to choose the Data
      Region. Upon setting the desired Data Region, the Current View is changed
      accordingly on BPC Web.
        OPEN TEMPLATE / REPORT LIBRARY / SCHEDULE LIBRARY
        If a step is defined as Open Template/Report Library/Schedule Library
        and INHERIT FROM DATA REGION is set to one (or more) of the Data Region
        dimensions, the Current View on BPC for Excel should change to match
        the settings done Data Region settings, being the same as the one on BPC Web.
        SET WORK STATUS
        Same as above.
    2. INHERIT FROM CURRENT VIEW
        OPEN TEMPLATE / REPORT LIBRARY / SCHEDULE LIBRARY
        If a step is defined as Open Template/Report Library/Schedule Library and INHERIT FROM
        CURRENT VIEW is set to one (or more) dimensions, the report will pickup the Current View
        from BPC Web and BPC for Excel should change to match the Current View,
        being the same as the one on BPC Web.
        Example:
        1. Log on to BPC Admin on ApShell -> Manage Application Sets;
        2. Go to Business Process Flows -> Budgeting Process;
        3. Grant access to the BPF to your test user;
        4. Check Sub-Step 1 of Step 1 - Check Budget Data. This steps has a
           INHERIT FROM CURRENT VIEW setup (ENTITY).
        5. Log on to BPC Web on ApShell;
        6. Go to Open a Business Process Flow and choose Budgeting Process;
        7. Choose the desired Data Region;
        8. On BPC Web, verify the value setup for ENTITY on the Current View;
        9. Open the Check Budget Data;
        10. The ENTITY on the Current View will be set up accordingly to what
            was set on BPC Web.
        SET WORK STATUS
        Same as above.
    3. MEMBER LOOKUP
        OPEN TEMPLATE / REPORT LIBRARY / SCHEDULE LIBRARY
        If a step is defined as Open Template/Report Library/Schedule Library and MEMBER LOOKUP
        is set to one (or more) dimensions, the report will set the Current View
        on BPC for Excel to the member that was configured.
        Example:
        1. Log on to BPC Admin on ApShell -> Manage Application Sets;
        2. Go to Business Process Flows -> Budgeting Process;
        3. Grant access to the BPF to your test user;
        4. Check Sub-Step 1 of Step 1 - Check Budget Data. This steps has a
           MEMBER LOOKUP setup (CATEGORY).
        5. Log on to BPC Web on ApShell;
        6. Go to Open a Business Process Flow and choose Budgeting Process;
        7. Choose the desired Data Region;
        8. On BPC Web, verify the value setup for CATEGORY on the Current View;
        9. Open the Check Budget Data;
        10. The CATEGORY on the Current View will be set up accordingly to what
            was set on the Task configuration, in other words, there should be BUDGET set
            on the Current View.
        SET WORK STATUS
        Same as above.
    REFERENCES
    This is an unofficial addendum for the SAP BPC 5.1 ADMINISTRATION USER'S GUIDE on:
    PAGE 54 - Managing Business Process Flows
    PAGE 57 - Adding new business process flows -> To add a step -> Select the current view type
    SAP BPC 5.1 ADMINISTRATION USER'S GUIDE can be found on [BPC Instalation Guides and User Guides|http://service.sap.com/instguidescpm-bpc].
    Edited by: Gustavo Bortoloti on Dec 15, 2008 6:48 PM

    Hi Gustavo Bortoloti,
    That's right, the SAP BPC version 5.x SP x not have the specific setting.
    Thanks,
    Wandi Sutandi

  • Binding variables in Process Flows

    I'm attempting to bind a variable defined in the Start activity to a Mapping activity's Input parameter. When I expand the Mapping activity and select the Input parameter in question, it forces me to explicitly enter a value. It does not show the Start activity parameter in the Binding listbox.
    This appears to work fine for other activities within a Process Flow (Email, FTP, Transform, Subprocess) but not with a Mapping. Is this a bug or by design?
    I'm working on OWB 9.2
    Dave

    Hi David,
    Sorry for the delay, I just tested this and mine nicely complies to what I want. Added a number input parameter to a mapping. Then added a number input in the Start activity. This works.
    Then I tried to do a string input on the start and try to bind that, and this does give the your result.
    Process flow only allows you to bind variables with the same data type (or equivalent). So please take a look at the datatypes for the mapping input and the Start activity parameter.
    If they are the same (e.g. integer and number, string and varchar2) this works.
    Jean-Pierre

  • Set up Business process Flows

    How to setup Business process flow email notification in sap bpc 7.5 nw

    Hi ,
    Please go thru the below link which is really helpful.
    http://sapbpctutorials.blogspot.com/2011/04/how-to-setup-business-process-flow-e.html
    Regards,
    Sanjeev

  • What is the best practice to display info of completed task in process flow

    Hi all,
    I'm starting to study BPM modeling with CE7.1 EHP1. Thanks to the tutorial and example on SDN site and I can easily build my own process in NWDS and deploy to server, start it, finish it.
    I like the new runtime which can show a BPMN diagram to the processors. However, I can't find a way to let the follow up processor to review the task result completed in previous step. I'm more familiar with Guided Procedure, and know there is "Display Callable Object" which can used to show some info of a completed task when the processor/owner/admin/overseer click on a completed task.  Where is the feature in BPM ? What is the best practice to show such task information in BPM environment.
    For example, A multiple level approval process, the higher level approver need to know the comment written by the previous approver. Can he read this information from process flow ?
    I think it is very important feature for a BPM platform. In Guided Procedure, such requirement can be done with Display Callable Object + View Permission, and you just need some coding for the UI. If BPM is superior to GP, I think there must be a way to achieve this, I just do not know how ?
    Can anyone shed me some light on it ?

    Oliver,
    Thanks for your quick reply.
    Yes, Notes and Attachment CAN BE USED for the purpose. But I'm still looking for a more elegant solution.
    With the solution of using Notes/Attachment, the processor need to give input at two places : the task UI and Note/Attach , with similar or same data. It is really annoying.
    Is there any SAP BPM real-world deployment ? None of customer has the requirement ?

  • How to edit the value in the email activity in process flow

    I have an email activity in my process flow.
    I want to change the value for the message body of the email activity. But it is not editable. While creation all the columns are in editable mode and after deploying and testing, i want to change the body of the email to be sent.
    How can i do it now? Please advice. This issue is in 6.0.4 release.
    Edited by: 910070 on Feb 17, 2012 12:48 AM

    got the solution after so much research !
    in 6.0.4, only way we can change the value for the message body or subject is to change the associate email procedure. which is something like edx_rpt_email.

  • Custom ADF Application with Process Instance Details Task Flow

    Hi,
    I want to use Process Instance Details Task Flow which is referred to in the doc below.
    http://download.oracle.com/docs/cd/E21764_01/user.1111/e15175/bpmug_ws_taskflows.htm#BACDBDJA
    But I could not find the task flow in the JAR files nor in the libraries described in the doc (Actually I could not find one of the JARs itself, adflibWorkspaceTaskFlows.jar).
    Does anyone know where can I find it and how to use it?
    It is more convenient if I can create a custom ADF application which contains information on process instance details using Java API for BPM.
    So I'd like to also ask whether such API is available or not.
    Regards,
    Kenji

    +1
    I also can't find the adflibWorkspaceTaskFlows.jar from the specified directory in the [ BPM Users Guide|http://download.oracle.com/docs/cd/E17904_01/user.1111/e15175/bpmug_ws_taskflows.htm#BACBBDCE] : "$FMW_HOME/AS11gR1SOA/soa/modules/oracle.soa.worklist_11.1.1"
    When I tinker the OracleBPMWorkspace.ear from the $SOA_HOME\soa\applications, it has the OracleBPMWorkspace.war that contains the adflibWorkspaceTaskFlows.jar in its WEB-INF\lib directory, but the adflibWorkspaceTaskFlows.jar does not contain the "processApplicationsTaskflow.xml" or the "processInstancesTaskflow.xml". Those task flows were present in the WEB-INF itself of the OracleBPMWorkspace.war itself which is not deployed as an ADF library.
    Please advice,
    Rommel Pino
    http://soadev.blogspot.com

  • EMail and SQLPLUS activity in process flow

    Hi Guys,
    I am struggling to get the email activity working. I entered all the details but no email is sent?
    Secondly, I had an easy sql plus script that I pasted into the script property box
    But the sqlplus just does not execute?
    truncate table xxx;
    quit
    Any ideas?

    Make sure there are no spaces after you have replaced DISABLED with NATIVE_JAVA.
    Any space after the NATIVE_JAVA will not work.
    Can you give details like what are you using Script or Parameter list etc ?
    Did you configure the deployed location for the SQLPLus parameter ??
    Regarding Your EMAIL -
    Is your process flow showing any error regarding email ??
    Create a simple process flow with email activity only.
    Set FROM_EMAIL , TO_EMAIL , SUBJECT ,MESSAGE_BODY, SMTP_SERVER , PORT
    SMTP_SERVER and PORT values are very important.
    Check connection to SMTP_SERVER by running the following command on dos prompt
    telnet smtp_server_name port
    If this works this means your smtp server is working. Now just deploy and run your processs flow.
    If it still doen't send you email, check whats in the log.
    The log should give you any errors regarding email like ORA-06512: at "SYS.UTL_TCP", line 17 ,etc (if any).
    Thanks,
    Sam.

  • Email utility activity in process flow

    Hi.
    I am new to environment. I am trying to use email activity in Process flows. I have given the parameters that have to be given like "to-address" etc. Validation, Deployment and start are getting succeeded. But I am unable get a mail. Can anybody suggest me How to use this. And also How can I find the SMTP server in my local machine. Else suggest me any links pls.
    Edited by: SwapnaPrerana on Jul 20, 2010 2:19 PM

    Hello Swapna,
    First of all you want to configure ACL and then do the following steps.
    In email properties mention the details are as follows:
    PORT = 25
    SMTP SERVER = (Get this details from your ITIS Team of Email Server).
    Regards,
    Ava

  • Analysing Task Audit, Data Audit and Process Flow History

    Hi,
    Internal Audit dept has requested a bunch of information, that we need to compile from Task Audit, Data Audit and Process Flow History logs. We do have all the info available, however not in a format that allows proper "reporting" of log information. What is the best way to handle HFM logs so that we can quickly filter and export required audit information?
    We do have housekeeping in place, so the logs are partial "live" db tables, and partial purged tables that were exported to Excel to archive the historical log info.
    Many Thanks.

    I thought I posted this Friday, but I just noticed I never hit the 'Post Message Button', ha ha.
    This info below will help you translate some of the information in the tables, etc. You could report on it from the Audit tables directly or move them to another appropriate data table for analysis later. The concensus, though I disagree, is that you will suffer performance issues if your audit tables get too big, so you want to move them periodically. You can do this using a scheduled Task, manual process, etc.
    I personally just dump it to another table and report on it from there. As mentioned above, you'll need to translate some of the information as it is not 'human readable' in the database.
    For instance, if I wanted to pull Metadata Load, Rules Load, Member List load, you could run a query like this. (NOTE: strAppName should be equal to the name of your application .... )
    The main tricks to know at least for task audit table are figuring out how to convert times and determing which activity code corresponds to the user friendly name.
    -- Declare working variables --
    declare @dtStartDate as nvarchar(20)
    declare @dtEndDate as nvarchar(20)
    declare @strAppName as nvarchar(20)
    declare @strSQL as nvarchar(4000)
    -- Initialize working variables --
    set @dtStartDate = '1/1/2012'
    set @dtEndDate = '8/31/2012'
    set @strAppName = 'YourAppNameHere'
    --Get Rules Load, Metadata, Member List
    set @strSQL = '
    select sUserName as "User", ''Rules Load'' as Activity, cast(StartTime-2 as smalldatetime) as "Time Start",
          cast(EndTime-2 as smalldatetime) as ''Time End'', ServerName, strDescription, strModuleName
       from ' + @strAppName + '_task_audit ta, hsv_activity_users au
       where au.lUserID = ta.ActivityUserID and activitycode in (1)
            and cast(StartTime-2 as smalldatetime) between ''' + @dtStartDate + ''' and ''' + @dtEndDate + '''
    union all
    select sUserName as "User", ''Metadata Load'' as Activity, cast(StartTime-2 as smalldatetime) as "Time Start",
          cast(EndTime-2 as smalldatetime) as ''Time End'', ServerName, strDescription, strModuleName
       from ' + @strAppName + '_task_audit ta, hsv_activity_users au
       where au.lUserID = ta.ActivityUserID and activitycode in (21)
            and cast(StartTime-2 as smalldatetime) between ''' + @dtStartDate + ''' and ''' + @dtEndDate + '''
    union all
    select sUserName as "User", ''Memberlist Load'' as Activity, cast(StartTime-2 as smalldatetime) as "Time Start",
          cast(EndTime-2 as smalldatetime) as ''Time End'', ServerName, strDescription, strModuleName
       from ' + @strAppName + '_task_audit ta, hsv_activity_users au
       where au.lUserID = ta.ActivityUserID and activitycode in (23)
            and cast(StartTime-2 as smalldatetime) between ''' + @dtStartDate + ''' and ''' + @dtEndDate + ''''
    exec sp_executesql @strSQLIn regards to activity codes, here's a quick breakdown on those ....
    ActivityID     ActivityName
    0     Idle
    1     Rules Load
    2     Rules Scan
    3     Rules Extract
    4     Consolidation
    5     Chart Logic
    6     Translation
    7     Custom Logic
    8     Allocate
    9     Data Load
    10     Data Extract
    11     Data Extract via HAL
    12     Data Entry
    13     Data Retrieval
    14     Data Clear
    15     Data Copy
    16     Journal Entry
    17     Journal Retrieval
    18     Journal Posting
    19     Journal Unposting
    20     Journal Template Entry
    21     Metadata Load
    22     Metadata Extract
    23     Member List Load
    24     Member List Scan
    25     Member List Extract
    26     Security Load
    27     Security Scan
    28     Security Extract
    29     Logon
    30     Logon Failure
    31     Logoff
    32     External
    33     Metadata Scan
    34     Data Scan
    35     Extended Analytics Export
    36     Extended Analytics Schema Delete
    37     Transactions Load
    38     Transactions Extract
    39     Document Attachments
    40     Document Detachments
    41     Create Transactions
    42     Edit Transactions
    43     Delete Transactions
    44     Post Transactions
    45     Unpost Transactions
    46     Delete Invalid Records
    47     Data Audit Purged
    48     Task Audit Purged
    49     Post All Transactions
    50     Unpost All Transactions
    51     Delete All Transactions
    52     Unmatch All Transactions
    53     Auto Match by ID
    54     Auto Match by Account
    55     Intercompany Matching Report by ID
    56     Intercompany Matching Report by Acct
    57     Intercompany Transaction Report
    58     Manual Match
    59     Unmatch Selected
    60     Manage IC Periods
    61     Lock/Unlock IC Entities
    62     Manage IC Reason Codes
    63     Null

  • Is It Possible To Start a Process Flow on Receipt of an Email?

    Hi
    Does anyone know if you can trigger the start of a process flow once an email has been received?
    thanks ...

    alternatively what you can done is:
    If you are using unix/linux OS then:
    create an SMTP service on unix/linux
    have the email coming into unix/linux
    write a unix shell scrpt to read he mails on a regular basis
    if the email is existing create a "touch file" referred as flag file
    use the OWB to check if the flat file exists on unix as owb can communicate with unix/linux
    and then run the process flow which has the mappings
    If you are using Windows OS then:
    have a program which will extract the mail from your local mailbox onto a server, there are few softwares available in the market
    use the option of writing it into a table or follow the flag file approach stated above.

  • How to set FROM ADDRESS for EMAIL activity in Process Flow

    Hi all,
    Can any one tell how to set(which address) FROM ADDRESS for EMAIL activity in Process Flow?
    Thanks,
    Suvvi

    Did you set what OWB guide says:
    To execute a process flow with an email activity, you may need to access different host machines and ports. New security measures implemented in Oracle Database 11g Release 1 restrict access to hosts and ports. You must explicitly grant access to hosts and ports that the email activity accesses using the DBMS_NETWORK_ACL_ADMIN package.
    For example, the user OWBSYS needs to send an email through the mail server mail.example.com using port 25. The DBA must perform the following steps:
    1. Create an Access Control List (ACL) for the user OWBSYS using the following command:
    EXECUTE DBMS_NETWORK_ACL_ADMIN.CREATE_ACL
    (’acl_for_owb_cc.xml’,’ACL for Control Center’,’OWBSYS’,’CONNECT’);
    The ACL has no access control effect unless it is assigned to network target.
    2. Assign the Access Control List (ACL) to a network host, and optionally specify a TCP port range. Use the following command:
    EXECUTE DBMS_NETWORK_ACL_ADMIN.ASSIGN_ACL (’acl_for_owb_cc.xml’,’mail.example.com’,25)
    3. Commit the changes made using the COMMIT command.

  • Using email activity in Process Flow

    Hi
    I am creating a process flow in owb, in it I am using the email activity, that if its a success or error then send the email. In the email activity parameters there is an option of binding, so can some one tell me that how will it work and how can I use binding with email.
    Thanks
    Salman

    Hi Salman,
    add the wanted parameters (smtp server, port, to_address...) to the start_1 operator in your processflow (see another thread in this folder how to do this, because it doesn't work properly). Set the values in this operator. Bind the parameters of the email activities to these parameters. You have to fill the from and to address in each email activity even if they are bound, otherwise you will receive an error, that the values are empty. This is another bug in my opinion, isn't it...
    Regards,
    Torsten

  • Process Flow: variable checking/email parameters

    I'm new to using process flows and it seems to me that I want to something very simple.
    I've created a boolean variable VAR1 (default is FALSE) which I want to assign depending on warning/failure of 2 mappings (not sure if using a variable is the correct way to go).
    So in my process flow, I call MAPPING1. On success, it calls MAPPING2.
    To bring more into it, if MAPPING1 produces a warning or error, then through an 'assign' activity (I think it should be an assign activity), VAR1 is set to TRUE.
    It returns back to process MAPPING2 (this same error handling occurs for MAPPING2).
    At the end, a CHECK on VAR1 needs to be performed.
    If VAR1=FALSE then end (success!).
    If VAR1=TRUE then call a function to grab the audit records for the error, and send an email, then end.
    My problems are
    (1)what activity in the pallete should I use for CHECK (which checks whether VAR1 is true/false)?
    (2)how do I read the VAR1 variable... I've been experimenting a whole load but nothing!
    (3)if VAR1 is TRUE and calls the function, how does the email activity receive the output from the function? (I've managed to get email working ..hurrrahh!)
    Thanks for any help... much appreciated
    Ansel

    Hi,
    Have you tried using conditions on your transitions?
    You can have in total three different endings to your process flow, end_success(in the process flow by default), end_warning and end_error. If you also include to 'or' operators in your processflow you can use these to collect the warning transitions,and between the or operator and the end operator you can put your email activities without having to use a if statement.
    Ragnar

Maybe you are looking for

  • App Item Not Populated

    Greetings - I've got a problem that only relates to developers, not end users. Apparently, something gets broken behind the scenes, when you log into a workspace as one user, and then access an application as another user. Here's the situation: My sa

  • I Can't switch my CardLayout @.@

    There is a card 3 but i havn't add ,so the "Enterbtn" is to trigger card 3. So what is wrong with my code that it can't switch? I changed the cardPanel from 2 to 1 and 1 to 2 but it only appear card 2. import java.awt.*; import java.awt.event.*; impo

  • How to create a jpeg of one frame

    I tried creating a freeze frame but it won't allow me to drag that frame into iPhoto. How can I grab an still image and make it a jpeg or other image format?

  • Entries in employee search dropdown

    Hi, We are trying to customize a screen in MSS. This is the "Employee Search" screen. In this view, we want to take out and add in some of our own entries in the "Employee Selection" dropdown. Does anyone know where are these entries reading from? EC

  • Document/Stage size - Sizing to Contents not making sense

    Forgive this basic newbie question, but I have a Flash CS4 document and I am attempting to resize the stage to accomodate its current contents. When I do so, the stage becomes *much larger* than the apparent contents, and I am trying to figure out wh