Subscibing to a workflow event and invoking a service using XMLGateway

I have a work flow event that will be raised when ever a purchase order is placed. I have to subscribe to this event and call a web service whenever I receive the notification. Can I achieve this using XML Gateway. I am a newbie to workflow so please suggest me any alternatives as well.

Hi,
You would need to write a custom piece of code in either PL/SQL or Java to route the event to either XML gateway or to the WS itself.
Not sure what's easiest, to be honest with you.
Matt
WorkflowFAQ.com - the ONLY independent resource for Oracle Workflow development
Alpha review chapters from my book "Developing With Oracle Workflow" are available via my website http://www.workflowfaq.com
Have you read the blog at http://thoughts.workflowfaq.com ?
WorkflowFAQ support forum: http://forum.workflowfaq.com

Similar Messages

  • Workflows 2013 and SQL Report Services: Configure on Independent Servers or Existing App Servers?

    Currently, my SharePoint 2013 Farm has Workflows 2013 and SQL Report Services installed on app servers, along with other applications. Workflows 2013 isn't working correctly (installed prior to my coming on board with the organization), I'm assuming it
    is a configuration issue, but rather than re-configure, I've read that is recommended to be a standalone server. It was also recommended by a MSFT rep that our report services have its own independent server. Currently, Report Services is also installed on
    an app server that runs other applications on the farm.
    Has anyone had any experience with installing Workflows 2013 and/or SQL Report Services on independent vs. existing application servers?
    Additionally, my existing application servers have 24 GB of RAM (I believe the recommendation for SharePoint production environments is 12 GB), should I plan for the potentially new servers (Workflows and Report Services) to also have 24 GB of RAM? Not really
    sure if it will be needed if they have dedicated tasks.
    Thanks for any input you can provide!

    It entirely depends on load. WFM will work just fine installed on servers in the SharePoint farm. SSRS preferably should go on the end-user facing servers for better performance.
    The questions you're asking are all "it depends" :)
    Trevor Seward
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • Invoking web service using Weblogic Workshop (JCX)

    Invoking web service using Weblogic Workshop
    Posted: 5 Jan 2005 23:31 PM Reply
    Hi,
    I have WSDL from which I have generated a web service control (.jcx) using Weblogic Workshop.
    I need to write a client which will invoke the web service using the control.
    Can someone help me on how to go about this ?
    BTW .. I also tried the clientgen route and tried to generated the proxy jar from the WSDL but wasn't successful because of a existing clientgen bug.
    Refer bug

    Hi,
    if the consumer of the webservice is a control-aware consumer ( pageflow, control, process ) simply drag the control to this consumer and the control variable is ready for use.
    if the consumer is not control-aware, try to generate a proxy using eg. the axis tool, or handcode your proxy class.
    links :
    how to use webservice control
    http://e-docs.bea.com/workshop/docs81/doc/en/workshop/guide/controls/conGettingStartedWithJavaControls.html
    axis
    http://ws.apache.org/axis/
    - Anders M.
    - Anders M.

  • How to Create and Deploy Web Services Using Oracle 9i JDeveloper

    Hi,
    My Question is how to create and deploy Web Services using Oracle 9i JDeveloper.Anybody please give me a detailed Reply.Please Reply to [email protected]
    Hopr to Hear From you,
    Regards,
    G Sreekumar

    You could use datasources. You should do this in your BC4J Configuration. Then when deploying your applicaiton use the command -installDataSource (from admin.jar) to create the right datasource.
    You could probably use the name of your connection + "DS" so you can also use it locally in JDeveloper as JDev seesm to create this automaticly for your Connections.

  • Invoke Decision service using Java instead of web service

    From a practical perspective, would it be possible to instantiate oracle.bpel.services.rules.impl.DecisionServiceImpl (this is the class used by the BPEL Decision service) in a normal Java program and invoke operations in it to interact with Oracle Rules.
    I have tried it but keep getting this error; any clues
    <OracleDataModel::getFactType> Fact type org.demo.employee.EmployeeType not found, return null.
    <::> ORABPEL-36333
    <::>
    <::> Error while executing the rule session.
    <::> The rule session employeeBonus failed to execute.
    <::> Check the underlying exception and correct the error. Contact oracle support if error is not fixable.
    <::>
    <::> at oracle.bpel.services.rules.rpi.AbstractDefaultRuleSession.execute(AbstractDefaultRuleSession.java:214)
    <::> at oracle.bpel.services.rules.impl.DecisionServiceImpl.process(DecisionServiceImpl.java:1202)
    <::> at
    Thanks!
    The detailed logs are given below:
    <RuleEngineFactory::loadConfiguration> Load configuration from DecisionServiceConfiguration.xml
    <RuleEngineFactory::loadConfiguration> DecisionServiceConfiguration.xml not found, intialize with minimal configuration.
    <RuleEngineFactory::loadConfiguration> Try to load rule engine provider Oracle
    <RuleEngineFactory::loadConfiguration> Try to load fact context OracleJaxb
    <RuleEngineFactory::loadConfiguration> Loaded 1 rule providers and 1 fact context providers.
    <DefaultHierarchicalCache::><init>> Create cache for /DecisionService
    <DefaultHierarchicalCache::><init>> Create Cache Event Listener for path /DecisionService
    <?xml version = '1.0' encoding = 'UTF-8'?><assertExecuteWatchStateless name="DecisionService" xmlns="http://xmlns.oracle.com/bpel/rules"><assertList><Employee xmlns="http://employee.demo.org"><employeeNo>employeeNo</employeeNo><income>1200</income></Employee></assertList></assertExecuteWatchStateless><DecisionServiceImpl::assertExecuteWatchStateless> Started.
    <DocumentHandler::createServiceContext> Create decision service context for
    <DocumentHandler::createServiceContext> <assertExecuteWatchStateless name="DecisionService" xmlns="http://xmlns.oracle.com/bpel/rules">
    <DocumentHandler::createServiceContext> <assertList>
    <DocumentHandler::createServiceContext> <Employee xmlns="http://employee.demo.org">
    <DocumentHandler::createServiceContext> <employeeNo>employeeNo</employeeNo>
    <DocumentHandler::createServiceContext> <income>1200</income>
    <DocumentHandler::createServiceContext> </Employee>
    <DocumentHandler::createServiceContext> </assertList>
    <DocumentHandler::createServiceContext> </assertExecuteWatchStateless>
    <DocumentHandler::createServiceContext> Decision service context is
    <DocumentHandler::createServiceContext> <assertExecuteWatchStateless name="DecisionService" xmlns="http://xmlns.oracle.com/bpel/rules">
    <DocumentHandler::createServiceContext> <assertList>
    <DocumentHandler::createServiceContext> <Employee xmlns="http://employee.demo.org">
    <DocumentHandler::createServiceContext> <employeeNo>employeeNo</employeeNo>
    <DocumentHandler::createServiceContext> <income>1200</income>
    <DocumentHandler::createServiceContext> </Employee>
    <DocumentHandler::createServiceContext> </assertList>
    <DocumentHandler::createServiceContext> </assertExecuteWatchStateless>
    <DecisionServiceImpl::preProcess> path: /DecisionService, context: WSIF
    <DocumentHandler::readConfiguration> Read decision service config from Local J2EE WS.
    <DocumentHandler::readConfiguration> Cache config URL file:/C:/learn/netbeans/OracleRulesProfile/build/classes/decisionservices.xml
    <DocumentHandler::readConfiguration> Read configuration from file:/C:/learn/netbeans/OracleRulesProfile/build/classes/decisionservices.xml
    <DecisionServiceCache::prepare> Cache decision services for path /DecisionService
    <DefaultHierarchicalCache::create> Path /DecisionService/ruleEngine
    <DefaultHierarchicalCache::><init>> Create Cache Event Listener for path /DecisionService
    <DefaultHierarchicalCache::><init>> Create Cache Event Listener for path /DecisionService/ruleEngine
    <DefaultHierarchicalCache::create> Path /DecisionService/decisionService
    <DefaultHierarchicalCache::><init>> Create Cache Event Listener for path /DecisionService/decisionService
    <DefaultHierarchicalCache::create> Path /DecisionService/datamodel
    <DefaultHierarchicalCache::><init>> Create Cache Event Listener for path /DecisionService/datamodel
    <DefaultHierarchicalCache::create> Path /DecisionService/ruleset
    <DefaultHierarchicalCache::><init>> Create Cache Event Listener for path /DecisionService/ruleset
    <DefaultHierarchicalCache::create> Path /DecisionService/rulesession
    <DefaultHierarchicalCache::><init>> Create Cache Event Listener for path /DecisionService/rulesession
    <DefaultHierarchicalCache::get> Path /DecisionService/ruleEngine, name: DemoRepository
    <DefaultHierarchicalCache::get> Path /DecisionService/ruleEngine, name: DemoRepository not found in cache.
    <DecisionServiceCache::prepare> Create rule engine for provider DemoRepository and cache at /DecisionService/ruleEngine
    <RuleEngineFactory::createRuleEngine> Create rule engine for DemoRepository, provider is Oracle
    <OracleRuleEngine::getLastModified> Check timestamp of repository C:\learn\jdeveloper\POC\OracleRules\demoRepository
    <OracleRuleEngine::><init>> Create new rule engine for DemoRepository, repository type File
    <DefaultHierarchicalCache::put> Path /DecisionService/ruleEngine, name: DemoRepository
    <DefaultHierarchicalCache::get> Path /DecisionService/decisionService, name: DecisionService
    <DefaultHierarchicalCache::get> Path /DecisionService/decisionService, name: DecisionService not found in cache.
    <DecisionServiceCache::prepare> Cache decision service metadata for DecisionService at /DecisionService/decisionService
    <DefaultHierarchicalCache::put> Path /DecisionService/decisionService, name: DecisionService
    <DefaultHierarchicalCache::get> Path /DecisionService/ruleset, name: DemoRepository$demoDictionary@production$employeeBonus
    <DefaultHierarchicalCache::get> Path /DecisionService/ruleset, name: DemoRepository$demoDictionary@production$employeeBonus not found in cache.
    <DefaultHierarchicalCache::get> Path /DecisionService/ruleEngine, name: DemoRepository
    <DecisionServiceCache::prepare> Cache rulesession metadata for DemoRepository$demoDictionary@production$employeeBonus at /DecisionService/ruleset
    <OracleRuleEngine::getRuleCatalog> Lookup rule catalog demoDictionary/production
    <OracleRuleEngine::getRuleCatalogs> Start loading rule catalogs.
    <OracleRuleEngine::getRuleCatalogs> Initailize rule repository.
    <OracleRuleEngine::initRuleRepository> Connect to File Repository at C:\learn\jdeveloper\POC\OracleRules\demoRepository
    <OracleRuleEngine::getRuleCatalogs> Load catalogs.
    <OracleRuleEngine::getRuleCatalog> Found rule catalog demoDictionary/production, return.
    <OracleRuleCatalog::getRuleSet> Lookup ruleset employeeBonus
    <OracleRuleCatalog::getRuleSets> Load rulesets.
    <OracleRuleCatalog::getRuleSets> Load rulesets done.
    <OracleRuleCatalog::getRuleSet> Found ruleset employeeBonus, return.
    <DefaultHierarchicalCache::put> Path /DecisionService/ruleset, name: DemoRepository$demoDictionary@production$employeeBonus
    <DefaultHierarchicalCache::get> Path /DecisionService/decisionService, name: DecisionService
    <DecisionServiceImpl::assertExecuteWatchStateless> Process request for /DecisionService
    <DecisionServiceImpl::process> DecisionService, path=/DecisionService, pattern: AssertExecuteWatchStateless
    <DefaultHierarchicalCache::get> Path /DecisionService/decisionService, name: DecisionService
    <DecisionServiceImpl::process> Found service DecisionService in cache.
    <DefaultHierarchicalCache::get> Path /DecisionService/decisionService, name: DecisionService
    <DecisionServiceCache::getRuleEngine> Get rule engine DemoRepository for service DecisionService from /DecisionService/ruleEngine
    <DefaultHierarchicalCache::get> Path /DecisionService/ruleEngine, name: DemoRepository
    <OracleRuleEngine::getLastModified> Check timestamp of repository C:\learn\jdeveloper\POC\OracleRules\demoRepository
    <DecisionServiceImpl::process> Found rule engine DemoRepository, provider is Oracle, repository type File
    <DefaultHierarchicalCache::get> Path /DecisionService/decisionService, name: DecisionService
    <DefaultHierarchicalCache::get> Path /DecisionService/rulesession, name: employeeBonus
    <DefaultHierarchicalCache::get> Path /DecisionService/rulesession, name: employeeBonus not found in cache.
    <DecisionServiceCache::createRuleSession> Create stateless rulesession employeeBonus for service DecisionService
    <DefaultHierarchicalCache::get> Path /DecisionService/ruleset, name: DemoRepository$demoDictionary@production$employeeBonus
    <OracleRuleEngine::createRuleSession> Create rule session employeeBonus
    <AbstractDefaultRuleSession::init> Initialize rule session employeeBonus providing rule set employeeBonus
    <OracleRuleSession::init> Initialize rule session employeeBonus, ruleset employeeBonus
    <OracleRuleSession::init> Initialize rule session done.
    <AbstractDefaultRuleSession::execute> Exceute rule session employeeBonus, pattern: AssertExecuteWatchStateless
    <AbstractDefaultRuleSession::execute> Create pattern converter for DecisionService
    <AbstractDefaultRuleSession::execute> Convert decide context for DecisionService
    <AbstractPatternConverter::convertList> Start converting list for Assert
    <OracleDataModel::getFactType> Lookup fact type org.demo.employee.EmployeeType
    <OracleDataModel::getFactTypes> Started.
    <OracleDataModel::getFactTypes> Initialize data model.
    <OracleDataModel::getFactTypes> Import 18 fact types into data model.
    <OracleDataModel::getFactTypes> 1 XML facts imported, Done.
    <OracleDataModel::getFactType> Fact type org.demo.employee.EmployeeType not found, return null.
    Exception in thread "main" ORABPEL-36333
    Error while executing the rule session.
    The rule session employeeBonus failed to execute.
    Check the underlying exception and correct the error. Contact oracle support if error is not fixable.
    at oracle.bpel.services.rules.rpi.AbstractDefaultRuleSession.execute(AbstractDefaultRuleSession.java:214)
    at oracle.bpel.services.rules.impl.DecisionServiceImpl.process(DecisionServiceImpl.java:1202)
    at oracle.bpel.services.rules.impl.DecisionServiceImpl.assertExecuteWatchStateless(DecisionServiceImpl.java:578)
    at demo.TestDecisionService.main(TestDecisionService.java:56)
    ...

    If you want to use the rule engine fro Java, I guess you should use the SDK:
    http://download-uk.oracle.com/docs/cd/B31017_01/web.1013/b28965/sdk.htm#sthref229

  • Getting "OSB Service Callout action received SOAP Fault response" on trying to invoke a service using service callout

    I'm trying to invoke a search service using service callout . However on trying to test it , I'm getting this response
    <con:fault  xmlns:con="http://www.bea.com/wli/sb/context">
    <con:errorCode>BEA-382500</con:errorCode>
    <con:reason>
    OSB Service Callout action received SOAP Fault response
    </con:reason>
    <con:details>
    <con1:ReceivedFaultDetail  xmlns:con1="http://www.bea.com/wli/sb/stages/transform/config">
    <con1:faultcode  xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">soapenv:Client</con1:faultcode>
    <con1:faultstring>Cannot find dispatch method for {}</con1:faultstring>
    <con1:http-response-code>500</con1:http-response-code>
    </con1:ReceivedFaultDetail>
    Please help in resolving this error.
    Thanks,
    Rohit

    you are calling wrong  the Service.
    ¿what kind of service do you have? RPC? Document?
    ir your target service its document, I recommend this:
    1. Test target service with OSB
    2. copy XML request and XML response from the test.
    3. use XML request format that you got at Step 2 in your source service and using it at your "Service Callout".

  • Invoking secured service using BPEL partner link -  basic authentication

    HI,
    We are invoking a secured service using partner link. The below property is defined in bpel.xml (basicHeaders property is created on partnerlink)
    <property name="basicHeaders">credentials</property>
    My concern is how the basicusername and basicpassword is sent to the secured webservice?
    is it sent in the calling uri ?
    I don't think it will be sent under soap header..
    Please anyone confirm.
    Thanks
    Phani

    Hi
    I am having trouble making the BPEL and Systinet to work together. I have Systinet and BPEL installed separately on 2 different servers. I deployed my web services and registered them in UDDI. I created a new BPEL process and added a partner link to refer to one of the web service I have registered in UDDI. When I create the partner link, it is forcing me to give the wsdl and it also gives an error message " There are no partner link types defined in current wsdl. Do you want create that will by default create partner link type for you?". If I say "NO' then deployment fails. If I say "Yes", then it creates a new wsdl file on the local server etc and gives "<Faulthttp://schemas.xmlsoap.org/soap/envelope/>
    <faultcode>soapenv:Server.userException</faultcode>
    <faultstring>com.oracle.bpel.client.delivery.ReceiveTimeOutException: Waiting for response has timed out. The conversation id is 75164a0815ea471a:-3be8c246:117cc377894:-537b. Please check the process instance for detail.</faultstring>". Any help is appreciated.

  • Exposing and Consuming web service using NWDS

    Hi all,
    I want to expose and consume a webservice using NWDS.
    My java application will interact with the SAP web service to create materials in r3.
    I just want to know how to create a EJB project that contains the Web service and deploy on the SAP WAS.
    and from the java application how would I access the same.
    do I need to AXIS jar ?
    How would get The WSDL corrosponding java files ?
    I will be very thank ful if you can provide me with the some study materials also.
    Warm regards

    Hi
    Refer these links
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/media/uuid/60dbd7ac-4788-2910-539b-b3599c64be12
    http://help.sap.com/saphelp_nw04s/helpdata/en/d6/f9bc3d52f39d33e10000000a11405a/frameset.htm
    Regards
    Abhishek

  • Books and resources teaching J2EE 5 (and creating web services using it)

    Hi!
    I'm starting a new job next week, developing a J2EE 5 system. I have a solid background in J2SE 1.4 and know most of the new syntactical and semantic stuff in J2SE 5.
    What I need is a good book teaching J2SE 5 to someone inexperienced with J2SE in general. There isn't a need for me to study J2SE 1.4 as we won't be using it. Also, we will develop some web services using the platform. As time is of the essence I'd prioritize learning about those within the platform, at first.
    I don't need to read the entire book in one week, of course. But I need something to study and also have as a reference by my side when programming.
    As the offerings in J2SE 5 books seems quite low, I need some advice from you, more experienced people. What book or web resource do you recommend? Thank you for your time reading this post!
    Best Regards,
    Kent

    Hello Kent!
    I have found "Enterprise JavaBeans 3.0" by by Richard Monson-Haefel and Bill Burke really interesting. If you have some knowledge about Java EE in general go for it it's really good one!

  • How to execute BPEL process and invoke web service and workflow design

    I am completely new to Oracle software. i need to develope BPEL process using oracle
    I have installed almost all necessary product like oracle SOA suite , jDeveloper, BPEL process manager.
    But nothing works . i did not installed patches.
    I INSTALLED ALL LATEST SOA SUITE 11g AND ORACLE BUSINESS MANAGER (10.1.3.1.0). BUT I AM LACKING bpel DESIGNER. For that purpose i downloaded and installed oracle JDeveloper 11g studio version. but it does not have bpel designer.
    all tutorial are based on either eclipse based bpel designer "bpelz" OR jdeveloper based. but latest JDEVELOPER 11g studio version does not have any bpel option. even i can not able to download necessary patches.
    KINDLY TELL ME NECESSARY PREREQUISITES TO RUN BPEL PROCESS TO setup complete bpel environment.
    necessary tutorials links and software to download.
    Thanks in advance K. ROY

    Hi Roy ,
    The Jdeveloper 11g does not have plugin for BPEL .
    download jdeveloper 10.1.3.4 from
    http://www.oracle.com/technology/software/products/jdev/index.html
    and run a online update for the jdeveloper . This will give you the BPEL project option.
    A very good link for learning BPEL is :
    http://www.oracle.com/technology/products/ias/bpel/htdocs/dev_support.html
    Regards
    Tushar B

  • Errors trying to Invoke web service using BES and SIF

    Moved this up from the Integration Forum to see if I can get some visibility on it.
    Description : When an invoice get's approved we need to pass on the details of the invoice and approval to the 3rd party customer.
    So far I have been able to test the business event which calls the web service that writes the information to a file. However, although the file is created there is no content in the file.
    So the steps up to this point
    1. Create a simple web service that takes a string as an input parameter and writes this out to a file.
    2. Locate the Approve Invoice event [oracle.apps.ap.event.invoice.approval] and add a new subscription that will invoke my web service.
    I have a number of issues at the moment.
    From the business event page I can test the event which writes a record to the wf_java_deferred queue. I have been able to call the service and create a file however that seems to have stopped working. Where do I look to see what's going wrong? Is the diagnostics the best place to start
    If I go into Status Monitoring I can see the last Business Event test I did is now having errors when it tries to invoke the web service. The error I get is
    Error Activity ID          
    Error Activity Label          
    Error Assigned User          
    Error Item Type          
    Error Item Key          
    Error User Key          
    Error Message          oracle.apps.fnd.wf.bes.InvokerException: Event payload is not available
    Error Name          
    Error Notification ID          
    Error Result Code          
    Error Stack          oracle.apps.fnd.wf.bes.InvokerException: Event payload is not available at oracle.apps.fnd.wf.bes.WebServiceInvokerSubscription.onBusinessEvent(WebServiceInvokerSubscription.java:236) at
    oracle.apps.fnd.wf.bes.EventDispatcher.executeSubscription(EventDispatcher.java:870) at oracle.apps.fnd.wf.bes.EventDispatcher.processSubscription(EventDispatcher.java:556) at
    oracle.apps.fnd.wf.bes.EventDispatcher.dispatch(EventDispatcher.java:335) at oracle.apps.fnd.wf.bes.AgentListenerProcessorNew.processMessage(AgentListenerProcessorNew.java:373) at
    oracle.apps.fnd.cp.gsc.SvcComponentProcessor.process(SvcComponentProcessor.java:659) at oracle.apps.fnd.cp.gsc.Processor.run(Processor.java:283) at java.lang.Thread.run(Thread.java:619)
    Error Monitor URL          
    Timeout Value          0
    Event Name          oracle.apps.ap.event.invoice.approval
    Event Details          PLSQL:WF_STANDARD.EVENTDETAILS/WFERROR:332124
    Event Message          View Event Message
    Event Key          3134525_1
    Event Data URL     http://hostname.co.nz:8000/OA_HTML/RF.jsp?function_id=18157&resp_id=-1&resp_appl_id=-1&security_group_id=0&lang_code=US&
    params=.tut9vCLHp8BRzYkdaLWV3ekOnBGTRSUSr1RYBqw0ISKruqT5nAzoOSzIkWSQrzWO8z23dyX31GlRw75r21ich1KC4hE2KL.ZedjIDcPalm8f.akDClydWkRR3w2eGuk
    Event Subscription http://hostname:8000/OA_HTML/RF.jsp?function_id=26058&resp_id=-1&resp_appl_id=-1&security_group_id=0&lang_code=US&
    params=fR9VOZbtfJEdYQNb645CRU3kD39os3CZwt7XUpbOYb1RImgFkWaeDFEV0SCaVn1M
    Error Type          UNEXPECTED
    Error Details          PLSQL:WF_STANDARD.ErrorDetails/WFERROR:332124
    Administrator Role          SYSADMIN
    Subscription Details          PLSQL:WF_STANDARD.SubscriptionDetails/WFERROR:332124
    Error Person ID          
    Error Person Username          
    How do I get access to the payload? I only really need 2 or 3 items at this time. Do I need to extend a seeded java function? For example in my initial tests I only want to pass across the Invoice Id so how do I get the value of this attribute out of the wf_event_t (Is this the correct object name) and into the payload that is being passed across to the service call.
    Cheers
    Owen

    Hello Owen
    I am experiencing the exact same issue as you are (missing payload) when invoking a web service and was wondering if you have resolved this issue or gotten any new useful information?
    Regards,
    Magnus

  • Invoking a service using BLOB data syntax

    Hi All,
    When invoking LC using BLOB the syntax is:
    //Create a BLOB object
    BLOB inDoc = new BLOB();
    //Populate the BLOB objects remoteURL data member
    inDoc.remoteURL = urlData;
    //Invoke the EncryptDocument process
    BLOB outDoc = encryptClient.invoke(inDoc);
    How the syntax goes when my service has also an input string variable,
    and how to handle the result if it also returns output string
    variable?
    Thanks in advance!

    Hi Jasmin,<br /><br />I've copied this code from "Invocation API quick starts" document,<br />see the full code:<br /><br />import com.adobe.idp.services.*;<br />import java.io.File;<br />import java.io.FileOutputStream;<br />import java.io.InputStream;<br />import java.net.URL;<br />import javax.activation.DataHandler;<br />import javax.activation.FileDataSource;<br />import org.apache.axis.attachments.AttachmentPart;<br />public class InvokeDocumentEncryptDime {<br />public static void main(String[] args) {<br />try{<br />//create a service locator<br />EncryptDocumentServiceLocator locate = new<br />EncryptDocumentServiceLocator();<br />  //specify the service target URL and object type<br />URL serviceURL = new<br />URL("http://localhost:8080/soap/services/EncryptDocument?blob=dime");<br />//Use the binding stub with the locator<br />EncryptDocumentSoapBindingStub encryptionClientStub = new<br />EncryptDocumentSoapBindingStub(serviceURL,locate);<br />encryptionClientStub.setUsername("administrator");<br />encryptionClientStub.setPassword("password");<br />//Get the DIME Attachments - which is the PDF document to encrypt<br />java.io.File file = new java.io.File("C:\\Adobe\\Loan.pdf");<br />//Create a DataHandler object<br />DataHandler buildFile = new DataHandler(new FileDataSource(file));<br />//Use the DataHandler object to create an AttachmentPart object<br />AttachmentPart part = new AttachmentPart(buildFile);<br />//get the attachment ID<br />String attachmentID = part.getContentId();<br />//Add the attachment to the encryption service stub<br />encryptionClientStub.addAttachment(part);<br />//Inform ES where the attachment is stored by providing the attachment id<br />BLOB inDoc = new BLOB();<br />inDoc.setAttachmentID(attachmentID);<br />BLOB outDoc = encryptionClientStub.invoke(inDoc);<br />//Go through the returned attachments and get the encrypted PDF document<br />byte[] resultByte = null;<br />attachmentID = outDoc.getAttachmentID();<br />//Find the proper attachment<br />Object[] parts = encryptionClientStub.getAttachments();<br />for (int i=0;i<parts.length;i++){<br />AttachmentPart attPart = (AttachmentPart) parts[i];<br />if (attPart.getContentId().equals(attachmentID)) {<br />//DataHandler<br />buildFile = attPart.getDataHandler();<br />InputStream stream = buildFile.getInputStream();<br />byte[] pdfStream = new byte[stream.available()];<br />stream.read(pdfStream);<br />//Create a File object<br />File outFile = new File("C:\\Adobe\\EncryptLoan.pdf");<br />//Create a FileOutputStream object.<br />FileOutputStream myFileW = new FileOutputStream(outFile);<br />//Call the FileOutputStream objects write method and pass the pdf<br />data<br />myFileW.write(pdfStream);<br />//Close the FileOutputStream object<br />myFileW.close();}}}<br /><br />The process I wish to invoke has 2 input parameters:<br />string variable  and a document,also this process returns a string and document as output.<br /><br />Do you have any example how to invoke it and handle its result?<br /><br />Thanks!

  • Issue using Flash IDE with Mac OS and Windows Web Service using NTLM authentication?

    I have an existing application that I developed on a Windows machine using CS5.  It uses a local intranet web service written in .NET using NTLM authentication.  The web service does multiple things such as read data from an SQL database, provide the user's username, and test for write/read access to a local company fileshare.  When my company upgraded, I went to a Mac with Flash CC which is great.  However, Mac's don't handle HTTP Authorization Challenge Blocks like Windows machines.  In Safari, Chrome, etc. it will pop up a little username and password box and proceed on without issue.  The issue is in Flash development.  When running the exact same application in Flash testing all script access fails with HTTP Status 401 errors.  I have searched the AS3 documentation, but the only thing built in to handle http challenge requests is in AIR not Flash.  The server admin's and I have tried all method's of cross domain policy files and access changes with no luck at all.  Does anyone have a solution to this issue?

    Did you check Apple Support Boot Camp article?
    iMac displays a black screen during installation of Windows 7
    http://www.apple.com/support/bootcamp/
    Installation Guide
    Instructions for all features and settings.
    Boot Camp FAQGet answers to commonly asked Boot Camp questions.
    Windows 7 FAQAnswers to commonly asked Windows 7 questions.

  • WorkFlow event

    hello everybody ...
    Please help me as to how to create a workflow event and how to trigger it when my me21n transaction is completed.
    what are the steps involved..
    Please need this quite urgently.....

    Why use SAP Workflow?
    SAP Workflow ensures " the right work is brought in the right sequence at the right time to the right people". It is a tool designed to facilitate and automate business processes that require tasks to be performed by people. Ideal for casual or non-SAP users, since all the work items can be performed outside of SAP by simply responding to an email, SAP workflow can be linked to Microsoft Outlook or Lotus Notes. Each step of a business transaction can be easily monitored and processes are completed from the beginning to the end. Workflow allows process owners to keep an eye on deadlines, provides statistics on the length of time to complete work processes, determine the workload with regard to individual employees and save processing time.
    Since Workflow delivers work items to employees automatically via email, they do not have to wait or inquire about the status of a particular transaction. SAP Business Workflow can also be used to respond to errors and exceptions - it can start when predefined events occur. For example, an event can be triggered if particular errors are found during an automatic check of the data SAP workflow is particularly useful when there is a business process involving more than one person, when an automatic notification can replace a manual communication and when there is a defined set of individuals and/or documents implicated. It organizes one's work, alerts users and directs traffic by sending work items - once the user executes the work item, then another one can be sent to another user. For example, a Manager could use workflow to approve a vacation request from an employee. The workflow application would ensure that each person involved uses the correct online form and successfully completes their step before the planned leave was entered into SAP - either by an Administrator or automatically. By the same token, if someone registers for a training class, Workflow can act as an alert tool by notifying the supervisor in question or reminding the individual of an upcoming class.
    Before implementing SAP Business Workflow, organizations should start by asking a series of questions, such as: - Which HR processes do we want to automate? - To what extent can we change current procedures and pass them over to electronic control? - What steps are these procedures made up of? - Who are the individuals involved and what are their roles? - How do we get the Workitem to go to the right people?
    Even though Workflow can be implemented via user-defined tables without the Organizational Management component in place, having a pre-defined organizational structure adds tremendous value and saves time. A clear reporting structure made up of positions and position holders that is maintained by the HR department, ensures the ongoing ease-of-maintenance effort. The ability of HR personnel to add and delete users from positions as people come and go, without affecting your core workflows, is a tremendous long-term benefit. If you have Personnel Administration in place, employee's email addresses can also be maintained by the HR department in addition to employee's respective Time/HR and Payroll administrators who might be involved in the Workflow.
    There are basically three options for connecting workflow to external email: Microsoft Outlook/Exchange, Lotus Notes or SAP Connect and Internet Mail. A key factor in SAP R/3 4.6 implementations and upgrades will be the use of a Web browser as the main workflow interface.
    Benefits of SAP Workflow
    Although the advantages gained by using workflow are not of financial nature, the time saved by optimizing processes could easily be translated into money. - The quality of your processes will be assured by sending relevant information directly to the user. Managers don't have the time to search for information. For example if an employee obtains a qualification as a result of hard work or training, their Managers can be notified immediately. - Cycle time is reduced by providing all the necessary information needed: people can check their list of pending tasks and determine which tasks can be completed the next day without any negative impact. I.e. A Payroll Administrator might be notified immediately of an employee address change via ESS that might implicate taxes. - Workflow allows to monitor deadlines.
    It could be used to remind employees of upcoming performance reviews or training or to send payroll year-end tasks items to the relevant Payroll Administrators. Deadline handing ensures that users perform the tasks within the time planned. Escalation measures ensure that the failure to meet a deadline can be corrected by other means. - Users can see at a glance how the process works and who will be selected to perform the different tasks, which creates a transparent work environment. - SAP contains Workflow templates, which can be used as a reference providing more than 200 Workflow samples. - Implementing Workflow will save costs. Ask yourself how much time is spent gathering information, getting hold of people, logging into different systems and trying to understand who to give a task to? How often does this current process fail and how labor intensive is it to fix it? Workflow reduces time and effort spent and the savings in days can be considerable.
    How does it work?
    There are several components of a workflow: Workflow Definition, Work Items, Triggering Events and at the Receiving end the Organizational Structure. The workflow definition is created in the Workflow builder and is made up of the various steps. Each step of the workflow definition can be a task pointing to a SAP transaction or a decision. A decision might contain specifications about agents and deadline monitoring for a step. The workflow is started either manually or by the system at runtime. For the system to start a workflow, the workflow definition must contain a triggering event (for example the event "Address update by the employee"). When the event occurs, the relevant workflow is started automatically. Tasks or Work items describe the activities involved and can refer to automatically executable methods (i.e. send an email to a supervisor) or they might need a user to execute them (i.e. supervisor has to go and click on a button in his workplace to approve something). Tasks refer to business objects, which are ABAP coding. Events are activities that trigger the workflow - one or several workflows at the time. Once the workflow is triggered, the definition flowchart determines when and in what order work happens. Work items are then received and executed in MS Outlook, Lotus Notes, mySAP Workflow MiniApp or the SAP integrated inbox. Alternatively, the workflow system can transmit e-mail notifications directly to any mail system, informing the user of the need to log in to the SAP system to execute the task. A work item is always assigned to one or more users. Once the task is executed, the work item vanishes from the other users' inboxes.
    Integration to Email systems
    Usually executable work items are received in the Workflow inbox. But casual SAP users, especially Managers might forget to check their inbox at a regular basis and so it makes sense to set up reminder emails, informing people via a batch job that they have work items in their inbox. Alternatively, an email can be sent directly to their Lotus Notes / Outlook account with a hotlink to the Workflow inbox. All emails, whether they exists in the form of Workflow notifications, Workflow Workitems, or just a standard SAP Office memo, are sent out of SAP through SAPConnect. This provides the all in one gateway between SAP and the mail server. The transport of workflow items between SAPConnect and the mail server (whether that's Lotus Notes or Microsoft Outlook) has been facilitated by SAP provided add-ons that are fully optimized for the different protocols required for each server. Lotus Notes, for example, uses a 'pipe' called the MTA, or Message Transfer Agent. This was designed jointly between SAP and Lotus to provide full integration between the two systems.
    It should be noted that the type of transport medium used is dependent on the mail server and not the mail client. In other words, if the employee uses Outlook on their computer but the mail server is a Lotus Domino server, the MTA would be the mail gateway used. Each workflow background user must have an email address stored in their user profile. It is note worthy that no approval or reply notification will be allowed from an external mail system - in other words external email systems cannot respond back to SAP for security reasons.
    Looking ahead…
    Workflow is becoming more and more web-oriented which allows external business partners to receive notifications. Companies can adopt Workflow together with "Webflow" where workflows can be initiated via Internet transactions and where different external business partners can receive notifications sent by the workflow. The Web inbox offers access to partner companies logging on to your Web portal and it refreshes itself automatically. Any type of work item can be executed directly from a centralized list of work items, no matter what graphical user interface is needed to run it. Webflow is particularly useful when a company deals with outside partners using different software platforms.
    Workflows can make an ERP system more efficient by automating situations in which work processes have to be run through repeatedly, or situations in which the business process requires the involvement of a large number of agents in a specific sequence. It is essential that the Workflow consultant is an expert in ABAP development or has access to ABAP programmers since a good deal of the work is technical. You will also need someone familiar with Lotus Notes / Outlook concepts and development in order to create the interfaces between the systems. The Workflow consultant should also have experience in installing and integrating efficient electronic archive systems.
    regards..
    Abhay
    rewards point if helpful

  • Processing workflow items and sub tasks inside CIC

    In CIC one can add a tab for the work flow inbox.
    In one workflow we have a decision task where the user will be able chose to create an activity. How does one modify CIC so the work item processing occurs inside a tab in CIC. With the benefit that the user at the same time can access the other feature inside CIC and at the same time enabling the workflow process to process the necessary steps.

    Hi Jan,
    When u create a CIC profile then attach the transaction profile of ur sales activity or oppourtunity or any transaction to with ur application area and create a workflow with the start event of that transaction and add an event in the workflow for create or change of that transaction .
    So when agent create the transaction by CIC then it will go to workflow event and an workflow event will trigger and go that transaction to the workflow inbox.
    Regards,
    Siddique

Maybe you are looking for