Missing warning: variable never used / variable assigned but never used

As a former C(++) programmer I am used to that the compiler can give me warnings if a variable is declared but never referenced or only assigned.
Is there a free tool that can do this ?? A similar function that can do the same with methods would also be extremely cool.
Thanks in advance

Here is a opensource tool that will do the checks that
you require(plus a number more):
http://pmd.sourceforge.net/
Nice.
I just gave the Eclipse plugin a go. It needs a little work to integrate more neatly and usefully into the IDE, but I like what I've seen of the framework so far.
I'd give the dukes to w4rren

Similar Messages

  • Namespace prefix in Root element missing during variable assignment

    In bpel 10.1.3.4, I need qualified element Namespaces in one of the target variables. I have an xsd that has elementFormDefault = "qualified" set, therefore all elements being referred to would have the namespace prefixed. This is working for all child elements, but not the root element. How can i get the root element prefixed with the namespace?
    If i use transform or copy/append operation to populate in the target variable the variable gets populated something like this :
    <Invoice xmlns:pidx="http://www.api.org/pidXML/v1.0" pidx:transactionPurposeIndicator="Original" pidx:version="1.0" xmlns="http://www.api.org/pidXML/v1.0">
    <pidx:InvoiceProperties>
    <pidx:InvoiceNumber>test123</pidx:InvoiceNumber>
    </pidx:InvoiceProperties>
    </Invoice>
    Whereas i need :
    <*pidx:*Invoice xmlns:pidx="http://www.api.org/pidXML/v1.0" pidx:transactionPurposeIndicator="Original" pidx:version="1.0" xmlns="http://www.api.org/pidXML/v1.0">
    <pidx:InvoiceProperties>
    <pidx:InvoiceNumber>test123</pidx:InvoiceNumber>
    </pidx:InvoiceProperties>
    </*pidx:*Invoice>
    Is there some way to accomplish this?
    Regards,
    Sandeep

    Hi Sandeep,
    We have exactly the same issue, but, when we implemented the solution, we are getting the following error, when we tried to compile the code, we are using 11.1.1.4.0 version of SOA 11g, appreciate if there is any way you can help us on this:
    Jul 12, 2011 2:40:28 PM com.collaxa.cube.CubeLogger info
    INFO: validating "BPELProcess1.bpel" ...
    oracle.jrf.UnknownPlatformException: JRF is unable to determine the current application server platform.
         at oracle.jrf.ServerPlatformSupportFactory.getInstance(ServerPlatformSupportFactory.java:79)
         at oracle.integration.platform.blocks.WLSPlatformConfigurationProvider.<clinit>(WLSPlatformConfigurationProvider.java:44)
         at oracle.integration.platform.blocks.FabricConfigManager.<clinit>(FabricConfigManager.java:154)
         at oracle.integration.platform.blocks.xpath.FabricXPathFunctionResolver.loadXpathFunctions(FabricXPathFunctionResolver.java:282)
         at oracle.integration.platform.blocks.xpath.FabricXPathFunctionResolver.loadXPathConfigFile(FabricXPathFunctionResolver.java:156)
         at oracle.integration.platform.blocks.xpath.FabricXPathFunctionResolver.init(FabricXPathFunctionResolver.java:49)
         at com.collaxa.cube.xml.xpath.BPELXPathFunctionNameResolver.loadFabricXpathFunctions(BPELXPathFunctionNameResolver.java:57)
         at com.collaxa.cube.xml.xpath.BPELXPathFunctionNameResolver.<init>(BPELXPathFunctionNameResolver.java:48)
         at com.collaxa.cube.xml.xpath.BPELXPathFunctionNameResolver.<clinit>(BPELXPathFunctionNameResolver.java:44)
         at com.collaxa.cube.lang.compiler.bpel.XPathExprValidatorVisitor.<init>(XPathExprValidatorVisitor.java:122)
         at com.collaxa.cube.lang.compiler.bpel.AssignValidator.<init>(AssignValidator.java:89)
         at com.collaxa.cube.lang.compiler.bpel.BpelParser.<init>(BpelParser.java:452)
         at com.collaxa.cube.lang.compiler.bpel.BPELValidator.validate(BPELValidator.java:60)
         at com.collaxa.cube.lang.compiler.BPEL1Processor.validate(BPEL1Processor.java:329)
         at com.collaxa.cube.lang.compiler.BPEL1Processor.process(BPEL1Processor.java:153)
         at com.collaxa.cube.lang.compiler.CubeParserHelper.compile(CubeParserHelper.java:47)
         at oracle.fabric.bpel.bpelc.BPELComponentValidator.validate(BPELComponentValidator.java:40)
         at oracle.soa.scac.ValidateComposite.validateComponentTypeServicesReferences(ValidateComposite.java:1117)
         at oracle.soa.scac.ValidateComposite.doValidation(ValidateComposite.java:500)
         at oracle.soa.scac.ValidateComposite.run(ValidateComposite.java:150)
         at oracle.soa.scac.ValidateComposite.main(ValidateComposite.java:135)
    Jul 12, 2011 2:40:29 PM CubeProcessGenerator compile
    WARNING: classpath is: C:\oracle\Middleware\jdeveloper\jdev\extensions\oracle.sca.modeler.jar;C:\oracle\Middleware\jdeveloper\soa\modules\oracle.soa.fabric_11.1.1\fabric-runtime.jar;C:\oracle\Middleware\jdeveloper\soa\modules\oracle.soa.mgmt_11.1.1\soa-infra-mgmt.jar;C:\oracle\Middleware\oracle_common\modules\oracle.fabriccommon_11.1.1\fabric-common.jar;C:\oracle\Middleware\jdeveloper\soa\modules\oracle.soa.bpel_11.1.1\orabpel.jar;C:\oracle\Middleware\jdeveloper\soa\modules\oracle.soa.mediator_11.1.1\mediator_client.jar;C:\oracle\Middleware\oracle_common\modules\oracle.mds_11.1.1\mdsrt.jar;C:\oracle\Middleware\oracle_common\modules\oracle.xdk_11.1.0\xmlparserv2.jar;C:\oracle\Middleware\oracle_common\modules\oracle.xdk_11.1.0\xml.jar;C:\oracle\Middleware\jdeveloper\jdev\extensions;;C:\JDeveloper\mywork\InvoiceTransferApp\InvoiceTransferProj\SCA-INF\classes;C:\JDeveloper\mywork\InvoiceTransferApp\InvoiceTransferProj\SCA-INF\classes;C:\JDeveloper\mywork\InvoiceTransferApp\InvoiceTransferProj\SCA-INF\gen-classes;C:\oracle\Middleware\oracle_common\modules\commonj.sdo_2.1.0.jar;C:\oracle\Middleware\oracle_common\modules\oracle.fabriccommon_11.1.1\fabric-common.jar;C:\oracle\Middleware\oracle_common\modules\oracle.xdk_11.1.0\xmlparserv2.jar;C:\oracle\Middleware\jdeveloper\soa\modules\oracle.soa.bpel_11.1.1\bpel1-1-xbeans.jar;C:\oracle\Middleware\jdeveloper\soa\modules\oracle.soa.bpel_11.1.1\orabpel-common.jar;C:\oracle\Middleware\jdeveloper\soa\modules\oracle.soa.bpel_11.1.1\orabpel.jar;C:\oracle\Middleware\jdeveloper\soa\modules\oracle.soa.bpel_11.1.1\bpel_coherence_config.jar;C:\oracle\Middleware\jdeveloper\soa\modules\oracle.soa.bpel_11.1.1\orabpel-exts.jar;C:\oracle\Middleware\jdeveloper\soa\modules\oracle.soa.bpel_11.1.1\thirdparty.jar;C:\oracle\Middleware\jdeveloper\soa\modules\oracle.soa.bpel_11.1.1\bpm-analytics.jar;C:\oracle\Middleware\jdeveloper\soa\modules\oracle.soa.bpel_11.1.1\orabpel-thirdparty.jar;C:\oracle\Middleware\jdeveloper\soa\modules\oracle.soa.bpel_11.1.1\wsif-binding.jar;C:\oracle\Middleware\jdeveloper\soa\modules\oracle.soa.bpel_11.1.1\orabpel-validator.jar;C:\oracle\Middleware\jdeveloper\soa\modules\oracle.soa.bpel_11.1.1\monitor-rt-xbean.jar;C:\oracle\Middleware\jdeveloper\soa\modules\oracle.soa.bpel_11.1.1\oracle.soa.bpmn.jar;C:\oracle\Middleware\jdeveloper\soa\modules\oracle.soa.bpel_11.1.1\orabpel1.jar;C:\oracle\Middleware\jdeveloper\soa\modules\user-patch.jar;C:\oracle\Middleware\jdeveloper\soa\modules\oracle.soa.thirdparty.jar;C:\oracle\Middleware\jdeveloper\uddi\lib\oracle.soa.uddi.jar;C:\oracle\Middleware\jdeveloper\soa\modules\oracle.soa.fabric_11.1.1\bpm-infra.jar;C:\oracle\Middleware\jdeveloper\soa\modules\oracle.soa.fabric_11.1.1\testfwk-xbeans.jar;C:\oracle\Middleware\jdeveloper\soa\modules\oracle.soa.fabric_11.1.1\fabric-ext.jar;C:\oracle\Middleware\jdeveloper\soa\modules\oracle.soa.fabric_11.1.1\soa-infra-scheduler.jar;C:\oracle\Middleware\jdeveloper\soa\modules\oracle.soa.fabric_11.1.1\xmlunit-1.1.jar;C:\oracle\Middleware\jdeveloper\soa\modules\oracle.soa.fabric_11.1.1\fabric-runtime.jar;C:\oracle\Middleware\jdeveloper\soa\modules\oracle.soa.fabric_11.1.1\soa-infra-tools.jar;C:\oracle\Middleware\jdeveloper\soa\modules\oracle.soa.fabric_11.1.1\soa-xpath-exts.jar;C:\oracle\Middleware\jdeveloper\soa\modules\oracle.soa.fabric_11.1.1\oracle-soa-client-api.jar;C:\oracle\Middleware\jdeveloper\soa\modules\oracle.soa.wls.jar;C:\oracle\Middleware\jdeveloper\soa\modules\oracle.soa.fabric_11.1.1\fabric-client.jar;C:\oracle\Middleware\jdeveloper\soa\modules\oracle.soa.fabric_11.1.1\fabric-runtime-ext-was.jar;C:\oracle\Middleware\jdeveloper\soa\modules\oracle.soa.fabric_11.1.1\fabric-runtime-ext-wls.jar;C:\oracle\Middleware\jdeveloper\soa\modules\oracle.soa.fabric_11.1.1\oracle.soa.fabric.jar;C:\oracle\Middleware\jdeveloper\soa\modules\oracle.soa.ext_11.1.1\classes
    Regards,
    Sireesh

  • Namespace prefix in Root element missing during variable assignment in SOA Suite 11g

    I need qualified element Namespaces in one of the target variables. All elements being referred to would have the namespace prefixed. This is working for all child elements, but not the for root element. How can i get the root element prefixed with the namespace?
    We are using SOA Suite 11g and the Jdeveloper version we are using is 11.1.1.6.0
    when i use transform operation to populate the target variable the variable gets populated something like this :
    <inputVariable>
    <part  name="payload">
    <Message>
    <msg:Header>
    <head:field1>xxxxxx</head:field1>
    <head:field2>2013-07-09T08:00:55</head:field1>
    </msg:Header>
    </Message>
    But the actual output we need is
    <inputVariable>
    <part  name="payload">
    <msg:Message>
    <msg:Header>
    <head:field1>xxxxxx</head:field1>
    <head:field2>2013-07-09T08:00:55</head:field1>
    </msg:Header>
    </msg:Message>
    We tried the fix suggested in one of the SOA threads but its not working for us and looks like that will work only for SOA SUITE 10g.
    Please provide us any help/suggestions if anyone know the solution.
    Thank you in advance for the help.

    Any one can help us please.......

  • SQL*Plus variable assignment works for 8i but not 9i

    We have scripts that connect to each database on the box and perform database tasks nightly. The scripts first set the environment then connects to each database with SQL*Plus. This works for 8i but fails in the recently created 9i environment. (Unix Solaris environment)
    Because the SQL*Plus connection appears in many areas in the scripts, we assign the following connection string to a variable:
    SQLPLUS="/usr/oracle/product/9.2.0/bin/sqlplus -s 'xxx/xxxxxx@xxxx as sysdba'"
    Export SQLPLUS
    echo "$SQLPLUS"
    (This echo out correctly: /usr/oracle/product/9.2.0/bin/sqlplus -s 'xxx/xxxxxx@xxxx as sysdba')
    It fails when the script calls the assigned variable:
    $SQLPLUS <<-EOF
    with the following error:
    Usage: SQLPLUS [ [<option>] [<logon>] [<start>] ]
    where <option> ::= -H | -V | [ [-L] [-M <o>] [-R <n>] [-S] ]
    <logon> ::= <username>[<password>][@<connect_string>] | / | /NOLOG
    <start> ::= @<URI>|<filename>[.<ext>] [<parameter> ...]
    "-H" displays the SQL*Plus version banner and usage syntax
    "-V" displays the SQL*Plus version banner
    "-L" attempts log on just once
    "-M <o>" uses HTML markup options <o>
    "-R <n>" uses restricted mode <n>
    "-S" uses silent mode
    However, if I remove the SQLPLUS variable assignment and changed all occurrence of
    $SQLPLUS <<-EOF to
    /usr/oracle/product/9.2.0/bin/sqlplus -s 'xxx/xxxxxx@xxxx as sysdba' <<-EOF
    Then the script runs successfully. But this solution is cumbersome.
    Any ideas as to how to have the script work with assigning the SQLPLUS variable????
    Any help is appreciated.

    I has an immediate suspicion it might be related to the issue
    mentioned in
    http://otn.oracle.com/support/tech/sql_plus/htdocs/sub_var2.html#2_7
    but this proved wrong: the SP2-306 still occurs in the latest
    SQL*Plus.
    I wonder what version of 8i you had working? With an old SQL*Plus
    8.1.7.0 my connection failed the same as in 9.2 and 10i.
    My solution was to do:
      SQLPLUS='sqlplus -s'
      UNPW='/ as sysdba'
      $SQLPLUS "$UNPW" &lt;&lt;EOF
      EOFThis worked in 9.2.0.5, 10.1.0.2 and 8.1.7.0.
    One common security risk on UNIX remains: putting the username and
    password on the command line. On some systems a "ps" command will
    show the password to any user. If OS authentication cannot be used
    for connection, perhaps putting the username/password in the SQL
    script may be more secure?
    A final note is that in SQL*Plus 10g, no quotes are needed around
    AS SYSDBA, i.e.
      sqlplus / as sysdba works from the OS prompt, whereas in 9.2 you need to do
      sqlplus "/ as sysdba"This makes a solution easy:
      SQLPLUS="/usr/oracle/product/10.1.0/bin/sqlplus -s xxx/xxxxxx@xxxx as sysdba"-- CJ

  • Variable Assignment : Workbook broadcast

    Hi gurus,
    We have been broadcasting 31 Inventory workbooks on a weekly basis for the past couple of months. The workbook is based on 1 inventory query which has a Cal Month and Store Location as mandatory variables. Obviously, while broadcasting the same, we should be able to set these variables in the Variable Assignment of the Workbook Precalculation Tab.
    Earlier I was able to see them in the variable assignment assignment for this workbook. We havn't changed the query, no changes in the system, No changes at all. But now I am not able to see a single variable in the variable assignment except for this variable that says Tech.Cont.: Time Frame for which Data is Selected.
    I am not sure where can I see the variants for this workbook. Anyways, we havn't mentioned any variants in the workbook precalculation tab. Please help me with this issue.
    I executed the query and tried broadcasting the corresponding query, Here I am able to see the variable assignment. But not for the corresponding workbook. Creating all the settings right from the scratch for changing from workbook broadcast to query result broadcast would be a very tedious task which I don't want to undertake right now.
    Can anyone please help me with this problem.
    Thanks & rgds,
    Sree

    Hi Murali,
    Thanks for your answer and sorry wasn't able to respond early.
    As I had mentioned, this problem didn't exist earlier. However, all of a sudden, we have started to face this issue. Global variants were never created because we are not using the option of VARIANTS, instead we use Variable Assignments. This has been the practice for the past many months, but all of sudden since last month, we started having this strange issue where we could'nt determine the variable assignment.
    When know I click on the variable assignment create link, there is only one variable that appears in the screen "Tech.Cont.: Time Frame for which Data is Selected", I donot see any other variables. Earlier though, i was able to see all the other variables (Plant, division, etc).
    Please let me know if you have any answer for this issue.
    Thnks & rgds,
    Sree

  • Variable assignment "Create" link opens up BEx Analyzer

    In a portal environment we're testing with, we are running into an unusual issue:
    In BEx Broadcaster, We open up a setting created for a particular query.  In the General Precalculation tab we are trying to create a variable assignment (Select VAR_01 from dropdown menu -->Create "link"), but when we click on the "Create" link, we're getting the BEx Analyzer instead of the variable screen for that query (doesn't work for any query, but for workbook settings, it works fine).  The following has been checked:
    ms/redirect_version is set to 1
    BI Support Desk tool is all GREEN
    Assertion ticket setup is correct (at least I think it is)
    I can also pull up Information Broadcasting directly from the backend system (sap/bw/Bex) and the variable screen comes up okay.
    Any ideas of some setting we're missing in the portal/backend?   Thanks for any help.
    (We're using NW SP 17 with BI-Java 17/23...BI Backend is NW SPS16)

    UPDATE:  fixed by updating support pack to BI JAva 18 (from 17/23).  The solution doesn't make much sense, but we've learned to just accept these sort of things in faith

  • IntelliJ IDEA - missing scripting variables

    I have set up a CQ5 project in IntelliJ, but there's one thing that's still missing. I'm using the CQ taglib and cq:defineObjects:
    <%@taglib prefix="cq" uri="http://www.day.com/taglibs/cq/1.0" %>
    <cq:defineObjects />
    All the needed JARs are included and all imports, taglibs etc. look good.
    However, when I try to use the defined scripting variables (slingRequest, currentPage, resource etc.) IntelliJ is unable to resolve them.
    Any ideas on what to do?

    I have exactly the same problem with weblogic 6.0 This seems to be a pretty obvious bug, could someone from weblogic comment on this?
              I've compiled jsp files with the scripting variable scoped NESTED and it is never declared anywhere in the compiled jsp file. If I changed the scoping to either AP_BEGIN or
              AT_END it is declared appropriately.
              Wendell Nichols
              Amdahl Software Ltd.
              Jan Pernica wrote:
              > Hello everybody
              >
              > We have implemented a set of tags declaring the NESTED scripting variables. When generating the java file the WL does not generate the declaration directives for variables.
              >
              > It works fine on TOMCAT but id does not work on WL 5.1.
              >
              > We had to change the scope of varibles from NESTED to AT_BEGIN and it works now.
              >
              > Any idea
              >
              > Thank you
              >
              > Jan
              

  • Variable Assignment in General Precalculation tab of BI 7.0 broadcaster

    Hi,
      In the broadcast setting, under General precalculation tab variable values can be set up. When we are clicking create variable values, screen with all the variables of the query were coming.
    After entering data in the variables and clicking OK, values are not being transferred to the Broadcast setting. The variable page remains like that with out transferring to the Pre Calculation tab.
    We are on SAPKW70020.Distribution type used is Broadcast email, output fornat is MHTML. I tried with other output types, but same result.
    We are using query as the object type for creating Bex Broadcaster.
    Has anyone ran into this issue before?
    Thanks & Regards,
    Pradeep

    Hi Mohan,
    You have opened up an old post, so many responses might be to answer the initial question.
    However, to answer your question, when you click 'Create' next to the 'VAR01 in Variable assignment, what you see is a popup window with the 'Ready for Input' variable present in your query/ workbook/ template, which is the same variable screen which you get when you execute the same query/ workbook/ template independently. You can then enter values for those variables and click OK, to save it and to be passed to the broadcasting setting. The broadcast would then happen for the same variable values.
    However, if you face the issue mentioned by Pradeep, then after clicking OK, you can cancel the popup window. The values of the variables would still be passed.
    After the popup window closes, you can see the 'Create', you initially saw, replaced with 'Change'. This means the values are saved.
    Hope it helps.
    Thanks,
    Abhishek.

  • Attributes / Variable assignment in Excel

    How do you create a variable assignment in Excel that passes the "test script coverage" report?
    We thought we were being clever when we put a list of our variable assignments in Excel. This allowed us to sort the assignments (something we could not do in Word.)
    Our process in Excel:
    We put an empty cell in the top row with the "OPM - Condition Heading" style.
    In the rows underneath that, we put our attributes with the "OPM - Conclusion Heading" style.
    To the right of the attributes, we put the assigned values with the "OPM - Conclusion" style.
    We had our nicely sortable list of variables and assignments. It looks cool and works quite well.
    However, test coverage analysis reports conclude that we have not tested the attributes since we didn't test for the "uncertain" path. Of course, our variables can never be "uncertain"! To some degree, the test coverage report is wrong, but I understand that the generated rule is an if-then-else rule and not a straight assignment...
    Thoughts? Is there a better way to do the variable assignment in Excel? Should we just live with it? Should we create a mock test with all our variables overridden to be "uncertain" or should we do something else?

    Sorry for the very late reply here, but I'm afraid the structure you have created is just not well handled by the coverage analysis because it compiles into a rule with an unreachable condition. This is normally harmless but the coverage analysis isn't smart enough to ignore it. I've raised a bug (OPAD-7096) to track this in our internal system.

  • Missing output variable specification

    Hi there,
    I am trying to put in place a one way BPEL process, which receive the invocation from the Mediator component and do not expect any response from the process. I get this error during compilation:
    Buildfile: /opt/oracle-jdev/bea-home/jdeveloper/bin/ant-sca-compile.xml
    scac:
    [scac] Validating composite "/home/alessandro/Work-Space/JDeveloperProject/SOA-POC/trunk/AuditService/composite.xml"
    [scac] Setting BPELC option 'classpath' to /opt/oracle-jdev/bea-home/jdeveloper/jdev/extensions/oracle.sca.modeler.jar:/opt/oracle-jdev/bea-home/jdeveloper/soa/modules/oracle.soa.fabric_11.1.1/fabric-runtime.jar:/opt/oracle-jdev/bea-home/jdeveloper/soa/modules/oracle.soa.mgmt_11.1.1/soa-infra-mgmt.jar:/opt/oracle-jdev/bea-home/oracle_common/modules/oracle.fabriccommon_11.1.1/fabric-common.jar:/opt/oracle-jdev/bea-home/jdeveloper/soa/modules/oracle.soa.bpel_11.1.1/orabpel.jar:/opt/oracle-jdev/bea-home/jdeveloper/soa/modules/oracle.soa.mediator_11.1.1/mediator_client.jar:/opt/oracle-jdev/bea-home/oracle_common/modules/oracle.mds_11.1.1/mdsrt.jar::/home/alessandro/Work-Space/JDeveloperProject/SOA-POC/trunk/AuditService/SCA-INF/classes
    [scac] FATAL_ERROR: in BPELProcess.bpel(107): output variable not defined
    [scac] <invoke/> missing output variable specification
    [scac] Make sure to use attribute outputVariable to specify the output message
    BUILD FAILED
    /opt/oracle-jdev/bea-home/jdeveloper/bin/ant-sca-compile.xml:236: Java returned: 1 Check log file : /home/alessandro/Work-Space/JDeveloperProject/SOA-POC/trunk/AuditService/SCA-INF/classes/scac.log for errors
    Total time: 9 seconds
    BPEL
    <?xml version = "1.0" encoding = "UTF-8" ?>
    <!--
    Oracle JDeveloper BPEL Designer
    Created: Thu Oct 07 16:50:01 CEST 2010
    Author: alessandro
    Purpose: One Way BPEL Process
    -->
    <process name="BPELProcess"
    targetNamespace="http://xmlns.oracle.com/SOA_POC_jws/AuditService/BPELProcess"
    xmlns="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
    xmlns:client="http://xmlns.oracle.com/SOA_POC_jws/AuditService/BPELProcess"
    xmlns:ora="http://schemas.oracle.com/xpath/extension"
    xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
    xmlns:ns1="http://xmlns.oracle.com/pcbpel/adapter/db/SOA-POC/AuditService/AuditDB%2F"
    xmlns:bpelx="http://schemas.oracle.com/bpel/extension"
    xmlns:ns2="http://xml.virtual-lab.eu/schema/poc-soa/audit/def"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:ns3="http://xmlns.oracle.com/pcbpel/adapter/db/top/AuditDB"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <!--
    PARTNERLINKS
    List of services participating in this BPEL process
    -->
    <partnerLinks>
    <!--
    The 'client' role represents the requester of this service. It is
    used for callback. The location and correlation information associated
    with the client role are automatically set using WS-Addressing.
    -->
    <partnerLink name="bpelprocess_client" partnerLinkType="client:BPELProcess" myRole="BPELProcessProvider"/>
    <partnerLink name="AuditDB" partnerRole="AuditDB_role"
    partnerLinkType="ns1:AuditDB_plt"/>
    </partnerLinks>
    <!--
    VARIABLES
    List of messages and XML documents used within this BPEL process
    -->
    <variables>
    <!-- Reference to the message passed as input during initiation -->
    <variable name="inputVariable" messageType="client:BPELProcessRequestMessage"/>
    <variable name="Invoke_AuditDB_insert_InputVariable"
    messageType="ns1:LogCollection_msg"/>
    <variable name="outputVariable" type="xsd:string"/>
    </variables>
    <!--
    ORCHESTRATION LOGIC
    Set of activities coordinating the flow of messages across the
    services integrated within this business process
    -->
    <sequence name="main">
    <!-- Receive input from requestor. (Note: This maps to operation defined in BPELProcess.wsdl) -->
    <receive name="receiveInput" partnerLink="bpelprocess_client" portType="client:BPELProcess" operation="process" variable="inputVariable" createInstance="yes"/>
    <assign name="Assign_Payload">
    <copy>
    <from variable="inputVariable" part="payload"
    query="/ns2:add/ns2:executionTime"/>
    <to variable="Invoke_AuditDB_insert_InputVariable" part="LogCollection"
    query="/ns3:LogCollection/ns3:Log/ns3:when"/>
    </copy>
    <copy>
    <from variable="inputVariable" part="payload"
    query="/ns2:add/ns2:onSys/@ns2:which"/>
    <to variable="Invoke_AuditDB_insert_InputVariable" part="LogCollection"
    query="/ns3:LogCollection/ns3:Log/ns3:whichSys"/>
    </copy>
    <copy>
    <from variable="inputVariable" part="payload"
    query="/ns2:add/ns2:fromUser"/>
    <to variable="Invoke_AuditDB_insert_InputVariable" part="LogCollection"
    query="/ns3:LogCollection/ns3:Log/ns3:who"/>
    </copy>
    <copy>
    <from variable="inputVariable" part="payload"
    query="/ns2:add/ns2:usingClient"/>
    <to variable="Invoke_AuditDB_insert_InputVariable" part="LogCollection"
    query="/ns3:LogCollection/ns3:Log/ns3:whichClient"/>
    </copy>
    <copy>
    <from variable="inputVariable" part="payload"
    query="/ns2:add/ns2:fromIP"/>
    <to variable="Invoke_AuditDB_insert_InputVariable" part="LogCollection"
    query="/ns3:LogCollection/ns3:Log/ns3:ipClient"/>
    </copy>
    <copy>
    <from variable="inputVariable" part="payload"
    query="/ns2:add/ns2:callingWS_Operation"/>
    <to variable="Invoke_AuditDB_insert_InputVariable" part="LogCollection"
    query="/ns3:LogCollection/ns3:Log/ns3:wsOperation"/>
    </copy>
    </assign>
    <invoke name="Invoke_AuditDB"
    inputVariable="Invoke_AuditDB_insert_InputVariable"
    partnerLink="AuditDB" portType="ns1:AuditDB_ptt"
    operation="insert"/>
    <terminate name="Terminate"/>
    </sequence>
    </process>
    Could anyone explain me why the compiler expects an output variable and why it doesn't work anyway.
    Thanks in advance
    Alessandro I

    Looks like you deleted the the response back from the client.
    If you want to fire and forget BPEL process create an empty BPEL process or an async process. Don't delete the callback in the async process. If the client isn't listening then nothing will happen.
    also why is your last step a terminate, this will force all process to have a status of fail.
    cheers
    James

  • Broadcasting and Variable Assignment

    Dear Experts,
      I want to assign variable in broadcasting dynamically. For example, this variable will be changed every month. I tried to set the variant on BEx Analyzer, and looked into the table TVARV, but I couldn't find my variant in that table. Is there any way to assign variable dynamically?

    Hi CSM Reddy,
    1. while creating your Broadcasting Settings ... you can use your Variable for OLAP Cache.
        Question1. How and where can I use variable for OLAP Cache in broadcasting. What I just see is variable assignment in the General Precalculation tab
        Question2. Variable for OLAP Cache you said is the same as the variable created in Query Designer, right?
    2. then you make sure the variable in Bex is setup with "Ready for input" unchecked
        Question1. I have to allow users to input month to see the report in the month they want, so I think I can't default the value for this variable.
        Question2. What do you mean 't Type variable'?

  • Template declaration error when variable assigned is the same as variable declared

    Hi Fedor,
    In comm-central repository, when compiling mozilla/mfbt/Compression.cpp using -std=c++11, it results in an error as follows:
    "../dist/include/mozilla/CheckedInt.h", line 400: Error: Unexpected type name "T" encountered.
    "../dist/include/mozilla/CheckedInt.h", line 400: Error: value is not defined.
    "../dist/include/mozilla/CheckedInt.h", line 400: Error: No direct declarator preceding ">".
    "../dist/include/mozilla/CheckedInt.h", line 400: Error: A declaration does not specify a tag or an identifier.
    "../dist/include/mozilla/CheckedInt.h", line 400: Error: Default template argument cannot be specified on the definition of a class template member that appears outside of its class.
    "../dist/include/mozilla/CheckedInt.h", line 400: Error: Templates can only declare classes or functions.
    "../dist/include/mozilla/CheckedInt.h", line 413: Error: No primary specialization for partial specialization NegateImpl<T, 0>.
    "../dist/include/mozilla/CheckedInt.h", line 416: Error: Too many arguments for template mozilla::detail::NegateImpl<T>.
    8 Error(s) detected.
    After a check on the file CheckedInt.h, it was narrowed down to the following code that resulted in the failure (the variable assigned, isSigned is the same as variable being declared) :
    template<typename T, bool IsSigned = IsSigned<T>::value>
    struct NegateImpl;
    This code, however compiles without problems in gcc-4.8.
    A workaround was to use a different variable declared in the template (e.g. bool IsTSigned = IsSigned<T>). But I just wanted to be sure whether is this a bug in 12.4 Beta or whether coding rules in templates do allow this kind of declaration? Kindly advise. Thanks.
    Regards,
    Brian

    Hi Steve,
    The declaration made below is not valid when -std=c++11 is not used (it causes the same compile-time errors when using July Refresh):
    template<typename U> class IsSigned;
    template<typename T, bool IsSigned = IsSigned<T>::value>
    struct NegateImpl;
    So far, the workaround was to use a different variable declared in the template (e.g. bool IsTSigned = IsSigned<T>).
    Regards,
    Brian

  • Variable Assignment-Workbook Precalculation

    Hai Guys,
    I have a problem while executing.please,go through it
    Start---BEx Analyzer--
    Create new work book.While executing the work book,it is asking me to enter variable values.Once the variables are given and when start executing it, i am getting the ouput correctly and when i  broadcast the same through email,in work precalculation tab, again it is asking me to enter variable values.I have done that and  executed.  But I am  not able to receive any email.Infact,after taking 3 mnts it showing Timed out error.Kindly,suggest me with a solution to this. Where should I exactly enter variables?
    Kindly,give me a solution for this.
    Thanks,
    Mohan Chand Reddy A

    Hai Shakir,
                    First i thank q for ur reply to my question.But is it correct that we should assign Variables only in the Workbook Precalculation tab?Some one are suggesting like variables can be given both in foreground calculation i.e., while creating a workbook and also we should give the same variables in the workbook  precalculation tab.But in one document, i found there is no variable assignment tab in the Broadcasting settings.It means they might have given variables in the workbook creation itself.
          Please,reply me.It's very urgent.
    Thanks,
    Mohan Chand Reddy A

  • Variable assignment screen in Precalculation server

    Hi Guru's,
    I am not able to get solution for this problem from long time. Can anybody tell me...
    How to setup variable assignment screen in Precalculation server?
    Currently when i click Create Variable assignment in precalculation tab of broadcaster... it gives error that error loading 0ANALYSIS_PATTERN template.
    Plz help. whole points will be assigned.
    Thanks
    Harshal

    I made a copy of 0ANALYSIS_PATTERN, and changed spro settings, wkbks are broadcasting but only problem is i am not able to assign variables, because no popup screen coming for creating variables. i also wrote program for table RSRVARIANT.

  • Flex warning: variable has no type declaration

    I need to  dynamically create several Form or Panel, called MyForm1, MyForm2, MyPanel1, MyPanel2, ... They are different because of the children in the Form or Panel. I also added some addtional public methods (method1, method2 ...) to the <mx:Form> or <mx:Panel>.
    I have a function, called myFactory,  that returns the MyForm1, MyPanel1... for me according to the input parameters. It is defined something like:
    function myFactory(input:String):DisplayObject {
    I tried two ways to call myFactory.
    1.
    var myViewObj:DisplayObject = myFactory(input:String); // no error. no warning.
    myViewObj.method1(); // compilation error because DisplayObject dose not have method1
    2.
    var myViewObj = myFactory(input:String); // no error, but got warning: variable has no type declaration
    myViewObj.method1(); // it works fine.
    It looks like the type of myViewObj is the actual type of myFactory retures, which could be one of MyForm1, MyPanel1....
    My questions are
    1. Is there a way I can declara a type to myViewObj to get ride of  warning.
    2. what type myViewObj should be called? generic type?

    In case your custom Form and Panel components share same method names (with different functionality), you can create an Interface with the common methods declaration and have both components implement it.
    This way you can declare the new interface as the returned type and invoke the common methods that it have.
    Thia is sort of a Polymorphism technic, a subject where you can read more about in the following page -
    http://en.wikipedia.org/wiki/Polymorphism_in_object-oriented_programming
    Good luck!

Maybe you are looking for

  • Safari will not open with the homepage in Lion

    How do you get Safari to open with the homepage in Lion?  Yes, it is set to open with the homepage in the Safari preferences.  Never had this problem before LION.

  • Valid name for home page

    I've tried unsuccessfully to find what names are valid html for home pages, "index", "default" etc. Is there a list somewhere? RIGHT Remove spam to email http://righttax.org

  • CS5 will not remember print settings

    Have upgraded from cs3 and cannot get cs5 to remember my print settings. In cs3 when I open a file to print it, the print driver automatically uses all the settings specified the last time I printed and saved the file. In cs5 the driver uses the sett

  • IPhone / iPhoto problem

    Here's a weird one: When I attempt to sync the iPhone to iPhoto by checking "Sync photos" under iTunes' Photos tab, the drop-down is empty -- it doesn't show any pictures or any albums. And then when I try to sync, I get a -50 error. However, when I

  • Choosing a Video Format - Importing using an Analogue/FIrewire Converter

    I am importing video using a Canopus ADVC110 analogue video converter, and am not sure what the best format to import is. None of the documentation on either iMovie (or Final Cut for that matter) has mentioned what the precise differences are between