Custom DSC instantiation

Hi, Adobe LC Forum..
Can anyone explain what the lifecycle of a custom DSC is, and how it's implemented (eg: as an EJB)?
I have a custom DSC that I'd like to have running from the time I start it (eg: using "Start Component" in the Components view in Workbench), until I manually stop it, servicing requests that get invoked via calls to methodes defined in the implementation class.
I'd think this is possible as it appears the other, "out of the box" Services like Forms and Output are implemented as Components as well, so it seems logical that there'd be a defined lifecycle for the DSCs that can be controlled programatically.
When I use my custom DSC today, it appears to instantiate a separate instance of the object on every call to any of the methods defined in the class.  As I'd like to persist data within the object across multiple method invocations, I don't want a separate instance of the object created on every call.  (I plan to use the DSC multiple times within a single Workflow.  On the first call, I want to do some initialization, get a connection object from the JDBC pool, prepare an SQL statement and hold on to it.  On later calls, I just want to do setXX (eg: setString) operations on the PreparedStatement and executeUpdate.  That way, I can optimize my SQL interactions with the database and also trap SQLException and other exceptions that the "out of the box" JDBC Services don't seem to catch).
Hope that makes sense..thanks for any and all help!
- J

Configure your component/Service to be a single process for all invocations.
i.e goto admin UI and configure it.

Similar Messages

  • Custom DSC can't find exception class, error about export-packages

    I've got a DSC which has a method that can throw two custom exceptions. It all works, and the exceptions show up available for handling in a process in Workbench, but the issue here is that the server.log has this error:
    2013-05-13 16:59:35,353 WARN  [com.adobe.workflow.AWS] An exception has been thrown for which the class information has not been exported in the service's export-packages, it is essential for the clients of the service to have the class information via export-packages to handle the exception.
    Yet I have added the exceptions' package to the export packages. And I also made a DataTypes entry for each of the two exceptions as well.
    Does anyone have an idea how I can get rid of this warning?
    Thanks,
    Jack

    You continue to use slash instead of dot.
    You did not follow any of my suggestions and still awarded me dukes,
    so I feel I have to make a last attempt.
    Here is what I have:
    D:\try>dir /s
    Volume in drive D is New Volume
    Volume Serial Number is 3ECC-CB52
    Directory of D:\try
    11/05/2007  12:18 PM    <DIR>          .
    11/05/2007  12:18 PM    <DIR>          ..
    11/05/2007  12:19 PM    <DIR>          a
                   0 File(s)              0 bytes
    Directory of D:\try\a
    11/05/2007  12:19 PM    <DIR>          .
    11/05/2007  12:19 PM    <DIR>          ..
    11/05/2007  12:19 PM    <DIR>          b
    11/05/2007  12:17 PM               808 MyClass.class
                   1 File(s)            808 bytes
    Directory of D:\try\a\b
    11/05/2007  12:19 PM    <DIR>          .
    11/05/2007  12:19 PM    <DIR>          ..
    11/02/2007  01:56 PM                11 Messages.properties
                   1 File(s)             11 bytes
         Total Files Listed:
                   2 File(s)            819 bytes
                   8 Dir(s)  70,889,848,832 bytes free
    D:\try>java a.MyClass
    value
    D:\try>Here is the code for MyClass:
    package a;
    import java.util.*;
    public class MyClass
      public static void main( String[] args ) throws Exception
        ResourceBundle rb = ResourceBundle.getBundle( "a.b.Messages" );
        System.out.println( rb.getString( "key") );
    }Here is the contents of Messages.properties:
    key = value

  • Custom Component: Instantiation attempted on a non-constructor.

    Hi all, i've created an empty class that extends the Slider
    control. it compiles fine, but when i run it, i get the following
    error: Error #1007: Instantiation attempted on a non-constructor.
    this is how i'm calling it:
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    xmlns:tix="com.tixsmart.flex.controls.*" >
    <tix:SeekBar x="91" y="223" width="424"
    height="11"/>

    Adobe Newsbot hopes that the following resources helps you.
    NewsBot is experimental and any feedback (reply to this post) on
    its utility will be appreciated:
    Flex 3 - Metadata tags:
    This MXML code generates an error because Flex cannot convert
    the Strings ' abc ' and ' def ' to a Number. You insert the
    [ArrayElementType] metadata tag
    Link:
    http://livedocs.adobe.com/flex/3/html/metadata_3.html
    How to highlight the ticks ina slider - Flex India Community:
    Apr 15, 2008 ... There was an error processing your request.
    Please try again. Standard view View as tree ... I am new to Flex
    and I have created a slider.
    Link:
    http://groups.google.com/group/flex_india/browse_thread/thread/f0f5b69c171ae859
    [#SDK-11271] A Flash Container can only take a Flex container
    as a:
    See code: <?xml version='1.0'?> <!--
    skins/PictureFrame.mxml --> <mx:Application xmlns:mx='
    http://www.adobe.com/2006/mxml'
    xmlns:myComps='*'>
    Link:
    http://bugs.adobe.com/jira/browse/SDK-11271
    Slider and Text Input Issue - Flex India Community | Google
    Groups:
    Aug 7, 2008 ... following code is solution for ur problem
    <?xml version='1.0' encoding='utf-8'?> <mx:Application
    xmlns:mx='
    http://www.adobe.com/2006/mxml'
    Link:
    http://groups.google.com/group/flex_india/browse_thread/thread/8bc9cccc3681711b?fwc=1
    HSlider and VSlider controls -- Flex 2:
    Flex provides two sliders: the HSlider (Horizontal Slider)
    control, which creates ... <mx:Application xmlns:mx='
    http://www.adobe.com/2006/mxml'>
    <mx:HSlider
    Link:
    http://livedocs.adobe.com/flex/2/docs/00000542.html
    Disclaimer: This response is generated automatically by the
    Adobe NewsBot based on Adobe
    Community
    Engine.

  • The server cannot find the method in the deployed custom DSC

    Hi everybody,
    I encountered a problem these days and I don't know how to solve it.
    Here is the detail information about it.
    I create a java project and export it as a runnable jar file as usual. Then, I deployed it in the component. In the server log, it said that "Method not found for service descriptor".
    However, I can still find the service in the "Service Management" and access the WSDL of the SOAP endpoint.
    Everytime when I try to invoke it, there is an error message showing that: the method doesn't exist.
    Does anybody have some ideas about this phenomenon? I really don't know what happened.
    Thanks in advance!

    Hi Hodmi,
    Thank you for your reply.
    I have figured it out. It because the type of the input parameter is not consistent with that in the component.xml.
    Thank you again.

  • Instantiating custom reference classes

    Hello,
    I have created Java classes based on oracle objects by using JPublisher. Some of the oracle objects contain references to other objects. Thus, JPublisher has also created custom reference classes.
    Now, retrieving those objects in JDBC code by using SELECT queries is simple. But inserting an object with a reference is more difficult, if I want to use an INSERT clause such as:
    OraclePreparedStatement opstmt =
    ( OraclePreparedStatement ) con.prepareStatement(
    "INSERT INTO PurchaseOrder_objtab VALUES (?)" );
    opstmt.setCustomDatum( 1, purchaseOrder );
    opstmt.executeQuery();
    opstmt.close();
    My question is: If the purchaseOrder above contains a variable with type CustomerRef, how is that custom reference instantiated?
    Regards,
    Timo

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by SQLJ Development ([email protected]):
    Your customers would live in an extent table (CREATE CUSTOMERS AS TABLE OF CUSTOMER_TY), the rows of which are REFerenceable. You then issue:
    SELECT REF(c) FROM CUSTOMERS c WHERE c.Some_Customer_ty_Attribute = ...
    There should be examples of this in the demo programs and manuals of both, JDBC and SQLJ distributions (e.g. [Oracle Home]/sqlj/demo/Objects/ObjectDemo*.*).<HR></BLOCKQUOTE>
    Unfortunately the REF examples are for weak typed mapping. I'd like to use strong typing with CustomDatum interface.
    Is it possible at all with these options?
    BR,
    Timo

  • DSC, SQL Server 2012 Enterprise sp2 x64, SQL Server Failover Cluster Install not succeeding

    Summary: DSC fails to fully install the SQL Server 2012 Failover Cluster, but the identical code snippet below run in powershell ise with administrator credentials works perfectly as does running the SQL server install interface.
    In order to develop DSC configurations, I have set up a Windows Server 2012 R2 failover cluster in VMware Workstation v10 consisting of 3 nodes.  All have the same Windows Server 2012 version and have been fully patched via Microsoft Updates. 
    The cluster properly fails over on command and the cluster validates.  Powershell 4.0 is being used as installed in windows.
    PDC
    Node1
    Node2
    The DSC script builds up the parameters to setup.exe for SQL Server.  Here is the cmd that gets built...
    $cmd2 = "C:\SOFTWARE\SQL\Setup.exe /Q /ACTION=InstallFailoverCluster /INSTANCENAME=MSSQLSERVER /INSTANCEID=MSSQLSERVER /IACCEPTSQLSERVERLICENSETERMS /UpdateEnabled=false /IndicateProgress=false /FEATURES=SQLEngine,FullText,SSMS,ADV_SSMS,BIDS,IS,BC,CONN,BOL /SECURITYMODE=SQL /SAPWD=password#1 /SQLSVCACCOUNT=SAASLAB1\sql_services /SQLSVCPASSWORD=password#1 /SQLSYSADMINACCOUNTS=`"SAASLAB1\sql_admin`" `"SAASLAB1\sql_services`" `"SAASLAB1\cubara01`" /AGTSVCACCOUNT=SAASLAB1\sql_services /AGTSVCPASSWORD=password#1 /ISSVCACCOUNT=SAASLAB1\sql_services /ISSVCPASSWORD=password#1 /ISSVCSTARTUPTYPE=Automatic /FAILOVERCLUSTERDISKS=MountRoot /FAILOVERCLUSTERGROUP='SQL Server (MSSQLSERVER)' /FAILOVERCLUSTERNETWORKNAME=SQLClusterLab1 /FAILOVERCLUSTERIPADDRESSES=`"IPv4;192.168.100.15;LAN;255.255.255.0`" /INSTALLSQLDATADIR=M:\SAN\SQLData\MSSQLSERVER /SQLUSERDBDIR=M:\SAN\SQLData\MSSQLSERVER /SQLUSERDBLOGDIR=M:\SAN\SQLLogs\MSSQLSERVER /SQLTEMPDBDIR=M:\SAN\SQLTempDB\MSSQLSERVER /SQLTEMPDBLOGDIR=M:\SAN\SQLTempDB\MSSQLSERVER /SQLBACKUPDIR=M:\SAN\Backups\MSSQLSERVER > C:\Logs\sqlInstall-log.txt "
    Invoke-Expression $cmd2
    When I run this specific command in Powershell ISE running as administrator, logged in as domain account that is in the Node1's administrators group and has domain administrative authority, it works perfectly fine and sets up the initial node properly.
    When I use the EXACT SAME code above pasted into my custom DSC resource, as a test with a known successful install, run with the same user as above, it does NOT completely install the cluster properly.  It still installs 17 applications
    related to SQL Server and seems to properly configure everything except the cluster.  The Failover Cluster Manager shows that the SQL Server Role will not come on line and the SQL Server Agent Role is not created. 
    The code is run on Node1 so the setup folder is local to Node1.
    The ConfigurationFile.ini files for the two types of installs are identical.
    Summary.txt does have issues..
    Feature:                       Database Engine Services
      Status:                        Failed: see logs for details
      Reason for failure:            An error occurred during the setup process of the feature.
      Next Step:                     Use the following information to resolve the error, uninstall this feature, and then run the setup process again.
      Component name:                SQL Server Database Engine Services Instance Features
      Component error code:          0x86D8003A
      Error description:             The cluster resource 'SQL Server' could not be brought online.  Error: There was a failure to call cluster code from a provider. Exception message: Generic
    failure . Status code: 5023. Description: The group or resource is not in the correct state to perform the requested operation.  .
    It feels like this is a security issue with DSC or an issue with the setup in SQL Server, but please note I have granted administrators group and domain administrators authority.  The nodes were built with the same login.  Windows firewall
    is completely disabled.
    Please let me know if any more detail is required.

    Hi Lydia,
    Thanks for your interest and help.
    I tried "Option 3 (recommended)" and that did not help.
    The issue I encounter with the fail-over cluster only occurs when trying to install with DSC!
    Using the SQL Server Install wizard, Command Prompt and even in Powershell by invoking the setup.exe all work perfectly.
    So, to reiterate, this issue only occurs while running in the context of DSC.
    I am using the same domain login with Domain Admin Security and locally the account has Administrators group credentials.  The SQL Server Service account also has Administrators Group Credentials.

  • DSC Question

    At the moment i have a deployment system whereby:
    - Virtual machines are created by various means.
    - A 'post installation' powershell script is executed by the answer file at the final stages of install.
    - This script is used to do things like set-up IP addressing, host name, install software packages, anything we need.
    I have been looking into DSC and i was wondering if it were possible to use it for these final stage 'state configurations'.
    My only issues are:
    - I cannot configure WinRM past the default config on these machines.
    - I don't actually want to use the consistency feature of DSC, i just want to use it for one-time config. I want the config to be able to drift over time. I appreciate this is not quite the use which DSC was designed for.
    Is it feasible to setup DSC in pull only mode, let it perform a state configuration and then effectively remove\disable any trace of DSC?
    Cheers.

    You'd be better off using a Push rather than a Pull, in the scenario you've described.  You can set the LCM to ApplyOnly mode, which will apply the configuration you push, but then will not bother to re-check the system on a schedule afterwards.
    As to whether using DSC this way adds any value over just using your existing scripts, that's a harder question to answer.
    Possible pros:  DSC resources will eventually get more use and scrutiny by the community, possibly more reliable code.  Automatic logging into the event log which you can archive and/or review later to see what happened.  Simpler code for
    you to write; the configuration itself doesn't show all the complexity of the resources themselves.
    Cons:  Many DSC resources currently available have problems, and may not be ready for prime time yet.  You'd have to re-implement all of your scripts as DSC configurations, possibly even having to write some custom DSC resources if the existing
    set doesn't quite meet your needs yet.  Basically, time investment (and possible introduction of bugs that aren't in your scripts today.)

  • DSC powershell xwindowsprocess to execute batch file under different user account

    DSC powershell run under "NT AUTHORITY\SYSTEM".
    I am trying to execute a batch file under different user account using xwindowsprocess in DSC resource kit.
    I created a custom dsc resource with 3 parameters namely Exepath, Arguments, Credential.
    I received those parameter values in settargetresource method.
    CallPInvoke
    [Source.NativeMethods]::CreateProcessAsUser(("$ExePath "+$Arguments), $Credential.GetNetworkCredential().Domain, $Credential.GetNetworkCredential().UserName, $Credential.GetNetworkCredential().Password)
    I tested it by invoking a batch file and writing username under which it executes to a text file.
    After executing, the output text file still contains the "Systemname$".

    Configuration Sample_xService_ServiceWithCredential
    param
    [string[]]
    $nodeName = 'localhost',
    [System.String]
    $Name,
    [System.String]
    [ValidateSet("Automatic", "Manual", "Disabled")]
    $StartupType="Automatic",
    [System.String]
    [ValidateSet("LocalSystem", "LocalService", "NetworkService")]
    $BuiltInAccount="LocalSystem",
    [System.Management.Automation.PSCredential]
    $Credential,
    [System.String]
    [ValidateSet("Running", "Stopped")]
    $State="Running",
    [System.String]
    [ValidateSet("Present", "Absent")]
    $Ensure="Present",
    [System.String]
    $Path,
    [System.String]
    $DisplayName,
    [System.String]
    $Description,
    [System.String[]]
    $Dependencies
    Import-DscResource -Name MSFT_xServiceResource -ModuleName xPSDesiredStateConfiguration
    Node $nodeName
    xService service
    Name = $Name
    DisplayName = $DisplayName
    Ensure = $Ensure
    Path = $Path
    StartupType = $StartupType
    Credential = $credential
    $Config = @{
    Allnodes = @(
    Nodename = "localhost"
    PSDSCAllowPlainTextPassword = $true
    #Sample Scenarios
    $credential = Get-Credential
    Sample_xService_ServiceWithCredential -ConfigurationData $Config -Name "Sample Service" -DisplayName "Sample Display Name" -Ensure "Present" -Path "C:\DSC\TestService.exe" -StartupType Automatic -Credential $credential
    ¯\_(ツ)_/¯

  • Printing a PDF document within a postscript file

    I know it is possible to print a PDF document from within a postscript file using Document Structuring Comments and Document Comment Extensions.  Is is possible to print a single page PDF document multiple times as a booklet?  For example I have a PDF document that is a page of graph paper.  I want to print this PDF file 8 times in the form of a booklet.  Is this possible and if it is how would I code the postscript to do this?
    Thank you  in advance
    David

    Where do you know that “it is possible to print a PDF document from withint a PostScript file using Document Structuring Comments and Document Comment Extensions” from?
    PDF is absolutely not part of the PostScript language itself. Nor is there anything in the DSC specifications that provides for printing a PDF document from within a PostScript file.
    Attached to this posting are the two existing pieces of documentation of DSC from Adobe. Neither references such a capability.
    DSC are simply “comments” within a PostScript program file which may be used by preprocessing software or external applications for various puposes, especially associated with prepress actions and placing of EPS (Encapsulated PostScript) in other graphic arts documents.
    Conceivably some implementor of some PostScript product may have provided some capability to embed a PDF file or to invoke the printing of a PDF file from within a PostScript file using custom DSC. However, this is certainly not part of the official PostScript language. I have also attached those specifications as well!
              - Dov

  • InitialContext Class Loader

    Hi all,
    We are experiencing a strange behaviour of the Application Class Loader. Our main issue is that if we deploy 2 applications using our code, the first application is okay, and the second application fails its loading. During the loading, we instantiate a customized InitialContextFactory (two times at all: one time per application). As a result, we have a ClassCastException in our customized InitialContext. Above a more detailed explanation of what happen. To sum up, we think that our InitialContextFactory is loaded by a master class loader, only one time for the 2 applications, and that the second application reaches the customized InitialContextFactory instantiated for the first application, so the classes loaded for the second application are not compatible.
    Details:
    - Each Application create a new InitialContext with the parameter "java.naming.factory.initial" equals to "com.test.CustomInitialContextFactory".
    - In the class com.test.CustomInitialContextFactory we access to other code from our application, which are passed to the context factory by the environment hashtable. In the method public javax.naming.Context getInitialContext(java.util.Hashtable env), we get some parameters from the env parameter like that: CustomObject o = (CustomObject)env.get("com.test.customObject");
    When the first application launches, it works very well.
    When the second application launches, it fails with a ClassCastException on the class com.test.CustomObject. We think that the class com.test.CustomObject is not loaded by the good class loader so it throws a ClassCastException.
    Thank you for your help

    We have found how the JNDI layer builds the specified context factory:
              ClassLoader cl = (ClassLoader) AccessController.doPrivileged(
                   new PrivilegedAction() {
                   public Object run() {
                        return Thread.currentThread().getContextClassLoader();
    But OC4J has specific Thread ClassLoader: this is the cause of all our problem. So there is a solution: create a specific context factory which calls the good class loader to load the context factory.
    Bye

  • Special Character XML Web Service call from Flex

    Hi,
    Let me first give a little background.
    I have to query and return data in XML format. To do so, I have created a custom DSC component. In cases where XML has special characters, LC throws error saying that XML is not properly formed. To over come this issue I used CDATA tag at DSC component. Now LC works as it should and I returns correct result.
    I have a web service call from Flex to get this XML result. Every time i trigger this web service I get an error message saying </document> tag is missing.
    I understand in Flex, web service returned data is wrapped in CDATA tag, thats what i causing all this issue.
    I am not sure, how to handle this situation, I am sure this is a common problem and there should be ways to work around it.
    I would really appreciate if any one could point me in the right direction.
    Thank you ..

    The web service has four operations in it, I need pingQuery operation execution code since it doesnot need any input value.
    I have used code something like this.. Any one please correct me if I am wrong..
    <mx:WebService 
    <mx:WebService> id="webService" wsdl=""https://hydrogen.csd.sc.edu/axis2/services/AcademicHistoryService?wsdl
    >
    <mx:operation name="pingQuery"resultFormat="
    object"result="resultHandler(event);"
    fault="faultHandler(event);"
    >
    <mx:request>
    <PingQuerySpecification>
    <value>
    fsdf
    </value>
    </PingQuerySpecification>
    </mx:request>
    </mx:operation>
    </mx:WebService>
    private function resultHandler(evt:ResultEvent):void {Alert.show(ObjectUtil.toString(evt.result));
    private function faultHandler(evt:FaultEvent):void {Alert.show(evt.message.toString());

  • Not receiving COMPLETE event in URLLoader

    Hi:
    I'm querying a web application in a remote server through XML files and receiving answers in the same file format. Until now, sometimes I received a connection error:
    Error #2044: Unhandled ioError:. text=Error #2032: Stream Error. URL: http://server/Services/startSesion.com
        at reg_jugadores_fla::MainTimeline/queryGQ()
        at reg_jugadores_fla::MainTimeline/reg_jugadores_fla::frame1()
    When this occurs, trying to access the services through a web browser, there's a test page where you can try queries, returns a "500 Internal server error". I managed that problem adding a listener to catch the error:
    xmlSendLoad.addEventListener(IOErrorEvent.IO_ERROR, catchIOError);
    But since yesterday I can't connect anymore using Flash while it's possible to access the test page. I'm not able to talk to any support guy as the company is closed for vacations! I added listeners to try to know what's happening and this is the result in the output window:
    openHandler: [Event type="open" bubbles=false cancelable=false eventPhase=2]
    progressHandler loaded:154 total: 154
    httpStatusHandler: [HTTPStatusEvent type="httpStatus" bubbles=false cancelable=false eventPhase=2 status=200]
    AFAIK, status=200 means OK but why the COMPLETE event isn't dispatched?. So, is there anything I can do or just wait until the tech guys return from the beach?
    Thanks in advance
    queryGQ(sessionURL,sessionQS);  // Start session
    stop();
    function queryGQ(url:String,qs:String):void {
    var serviceURL:URLRequest = new URLRequest("http://server/Services/"+url);
    serviceURL.data = qs;
    serviceURL.contentType = "text/xml";
    serviceURL.method = URLRequestMethod.POST;
    var xmlSendLoad:URLLoader = new URLLoader();
    configureListeners(xmlSendLoad);
    xmlSendLoad.load(serviceURL);
    function configureListeners(dispatcher:IEventDispatcher):void {
    dispatcher.addEventListener(Event.COMPLETE, loadXML);
    dispatcher.addEventListener(Event.OPEN, openHandler);
    dispatcher.addEventListener(ProgressEvent.PROGRESS, progressHandler);
    dispatcher.addEventListener(SecurityErrorEvent.SECURITY_ERROR, securityErrorHandler);
    dispatcher.addEventListener(HTTPStatusEvent.HTTP_STATUS, httpStatusHandler);
    dispatcher.addEventListener(IOErrorEvent.IO_ERROR, catchIOError);
    function openHandler(event:Event):void {
    trace("openHandler: " + event);
    function progressHandler(event:ProgressEvent):void {
    trace("progressHandler loaded:" + event.bytesLoaded + " total: " + event.bytesTotal);
    function securityErrorHandler(event:SecurityErrorEvent):void {
    trace("securityErrorHandler: " + event);
    function httpStatusHandler(event:HTTPStatusEvent):void {
    trace("httpStatusHandler: " + event);
    function ioErrorHandler(event:IOErrorEvent):void {
    trace("ioErrorHandler: " + event);

    Hugo,
    View may not fire events. View may call method on other controller (component / custom) and this controller fires event.
    You are absolutely right: in WD only instantiated controllers receives the event, event itself does not cause controller instantiation.
    The only controller that is always instantiated is component controller.
    Custom controllers instantiated on demand when their context is accessed or user-defined method called.
    As far as view may not have externally visible context nodes and methods (you may not add view controller as required to other one and use nodes/methods of view), the only time when view is instantiated is when it get visible for first time.
    To solve your problem, try the following:
    1. Save event parameters to component controller context node element before firing event.
    2. Create mapped node in target view and set node from controller as source.
    3. In wdDoInit of target view insert the following code:
    wdThis.<eventHandlerName>(
    null, //no wdEvent
    wdConext.current<NameOfMappedNode>Element().get<NameOfParamA>(),
    wdConext.current<NameOfMappedNode>Element().get<NameOfParamB>(),
    Valery Silaev
    SaM Solutions
    http://www.sam-solutions.net

  • How to implement a service that runs once a day?

    Hi all,
    is there a service or so available that waits for example 24 hours and runs every day for example at 9:00 am?
    I know there is the Wait service with the scheduleWait operation, but I can only specify days, hours or minutes. So I can not use this service to specify a time when to run. How is this possible?
    Thanks in advance!
    Paul

    Design your process somewhat similar to the above model.
    Invoke your process (only one time) at 9 AM.
    This is the simplest solutions. The other way is to write a custom DSC.
    Nith

  • Container  ALV not working in background

    Hi all,
    I created an ALV grid, which runs fine foreground. In the background however the spool is created but cancelled.
    REATE OBJECT g_custom_container
            EXPORTING
              container_name              = 'G_CUSTOM_CONTAINER'
            EXCEPTIONS
              cntl_error                  = 1
              cntl_system_error           = 2
              create_error                = 3
              lifetime_error              = 4
              lifetime_dynpro_dynpro_link = 5
              OTHERS                      = 6.
    IF sy-subrc <> 0.
    Error in custom container instantiation. ALV cannot be displayed
            MESSAGE e000 WITH text-015.
          ENDIF.
          CREATE OBJECT g_dyndoc_id
            EXPORTING
              style  = 'ALV_GRID'.
      Create a splitter and split the container for
      the two parts of ALV contents
          CREATE OBJECT g_splitter
            EXPORTING
                   parent          = g_custom_container
                   rows              = 2
                   columns           = 1.
      Get container for top half of the report
          CALL METHOD g_splitter->get_container
            EXPORTING
              row       = 1
              column    = 1
            RECEIVING
              container = g_container_top.
      Set the height of container for top half of the report
          CALL METHOD g_splitter->set_row_height
            EXPORTING
              id     = 1
              height = 20.
      Get Container for bottom half of the report
          CALL METHOD g_splitter->get_container
            EXPORTING
              row       = 2
              column    = 1
            RECEIVING
              container = g_container_grid.
      Instantiate ALV grid main report
          CREATE OBJECT g_grid
            EXPORTING
              i_parent          = g_container_grid
            EXCEPTIONS
              error_cntl_create = 1
              error_cntl_init   = 2
              error_cntl_link   = 3
              error_dp_create   = 4
              OTHERS            = 5.
          IF sy-subrc <> 0.
        Error in grid instantiation. ALV caanot be displayed
            MESSAGE e000 WITH text-016.
          ENDIF.
      Build field catalogue
          PERFORM build_field_cat.
      Inatntiate Top-of-Page event
          CREATE OBJECT g_events.
          SET HANDLER g_events->handle_top_of_page FOR g_grid.
       IF it_comparednomatch[] IS INITIAL.
         MESSAGE s000 with text-003.
         EXIT.
       ELSE.
      Print ALV Contents of first half of report
          g_grid->set_table_for_first_display( EXPORTING i_default = 'X'
                            CHANGING it_outtab = it_comparednomatch
                               it_fieldcatalog = it_fldctdrl
                            EXCEPTIONS invalid_parameter_combination = 1
                                                  program_error = 2
                                                  too_many_lines = 3
                                                  OTHERS = 4 ).
          IF sy-subrc <> 0.
        Error in displaying ALV
            MESSAGE e000 WITH text-017.
          ENDIF.
       ENDIF.
      ENDIF.
      Call top-Of-Page
      CALL METHOD g_grid->list_processing_events
        EXPORTING
          i_event_name = 'TOP_OF_PAGE'
          i_dyndoc_id  = g_dyndoc_id.
    Please help me out.

    In Background only one ALV Print is coming, but the other one is giving not showing, This is not giving any Dump unlike previous case.
    REPORT  ztest_oo_a.
    DATA: it_flight TYPE sflight_tab1.
    DATA: dock TYPE REF TO cl_gui_docking_container,
          split TYPE REF TO cl_gui_splitter_container,
          grid1 TYPE REF TO cl_gui_alv_grid,
          grid2 TYPE REF TO cl_gui_alv_grid,
          doc1 TYPE REF TO cl_gui_docking_container,
          con22 TYPE REF TO cl_gui_docking_container.
    SELECT *
      FROM sflight
      INTO TABLE it_flight
      UP TO 20 ROWS.
    CALL SCREEN 100.
    *&      Module  STATUS_0100  OUTPUT
    *       text
    MODULE status_0100 OUTPUT.
      SET PF-STATUS 'SATR'.
      CREATE OBJECT dock
        EXPORTING
          repid     = sy-repid
          dynnr     = '100'
          extension = '600'
          side     = '1'
        EXCEPTIONS
          cntl_error                  = 1
          cntl_system_error           = 2
          create_error                = 3
          lifetime_error              = 4
          lifetime_dynpro_dynpro_link = 5
          OTHERS                      = 6
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                   WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
      CREATE OBJECT doc1
        EXPORTING
          repid     = sy-repid
          dynnr     = '100'
          extension = '1000'
          side     = '4'
        EXCEPTIONS
          cntl_error                  = 1
          cntl_system_error           = 2
          create_error                = 3
          lifetime_error              = 4
          lifetime_dynpro_dynpro_link = 5
          OTHERS                      = 6
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                   WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
      CREATE OBJECT grid1 EXPORTING i_parent = dock.
      CALL METHOD grid1->set_table_for_first_display
        EXPORTING
          i_structure_name              = 'SFLIGHT'
        CHANGING
          it_outtab                     = it_flight
        EXCEPTIONS
          invalid_parameter_combination = 1
          program_error                 = 2
          too_many_lines                = 3
          OTHERS                        = 4.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                   WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
      CREATE OBJECT grid2 EXPORTING i_parent = doc1.
      CALL METHOD grid2->set_table_for_first_display
        EXPORTING
          i_structure_name              = 'SFLIGHT'
        CHANGING
          it_outtab                     = it_flight
        EXCEPTIONS
          invalid_parameter_combination = 1
          program_error                 = 2
          too_many_lines                = 3
          OTHERS                        = 4.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                   WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    ENDMODULE.                 " STATUS_0100  OUTPUT
    *&      Module  USER_COMMAND_0100  INPUT
    *       text
    MODULE user_command_0100 INPUT.
      CASE sy-ucomm.
        WHEN 'BACK'.
          LEAVE TO SCREEN 0.
      ENDCASE.
    ENDMODULE.                 " USER_COMMAND_0100  INPUT

  • To Upgrade or Install New for ES2?

    We currently have LiveCycle ES (v8.2 SP3)/JBOSS installed in our environment.  We are looking to move to ES2.5 (v9.5) but dont know whether to upgrade the existing [ES --> ES2 + SP2] OR create a new instance of ES2 [+SP2] on our server?
    Since all of our workbench processes are short lived and we do not use Rights management i've read we can do either..  Can anyone comment on why/which method is better and why?
    Is a new install quicker?
    Our production environment is clustered between ServerA and ServerB.  Does the clustering of our prod env, change your answer?
    Our intention for the prod upgrade is
    Stop locators.
    Stop ServerA.  All transactions goto Server B.
    Upgrade Server A.
    Restart Server A and stop Server B.  All transactions will goto Server A.
    Upgrade Server B.
    Restart locators.
    Env will be clustered again..

    Hi g5spark,
    There are specific advantages/disadvantages to each of the options you have. I'm listing them below and I hope that would help you make a decision.
    In case you choose to upgrade, you'll be reusing a lot of stuff from your existing installation, global document storage (GDS) directory contents and database being some of these.
    The benefit of upgrade is:
    1) You'll NOT have to re-create your processes in LiveCycle ES2.5
    2) If you have configured an LDAP directory server, it will come pre-configured
    3) If you have any custom DSCs that will also be brought forward.
    4) Any configuration settings added/modified in LiveCycle Administration Console will also be retained.
    5) A cluster upgrade is similar to a standalone upgrade and doesn't require anything special.
    Upgrade is a little lengthier than a fresh install in the terms that:
    1) You will have to shutdown your existing system and take a backup of your global document storage (GDS) directory contents and the database along with few other things described in detail in upgrade documentation.
    2) You can continue to use your existing processes as is, however, if you want to take advantage of the new Application Model of LiveCycle ES2.5 you MAY have to do some manual modifications to your processes.
    3) Considering that your environment is a clustered one, you must bring the entire cluster down, you cannot upgrade each cluster node independently.
    In case you choose to go for a fresh installation, you cannot reuse anything from your existing insallation.
    The benefit of a new install is:
    1) You don't have any application downtime. Once you have your new system up and running, you can just communicate it to your users to shift from older to newer server.
    2) You don't have to worry about taking backups and restoring them.
    3) You will create your processes directly in the new Application Model.
    Few disadvantages of a fresh install would be:
    1) You'll need to write your processes from scratch which should include the time of learning the new Application Model.
    2) Any custom components would have to be re-deployed.
    3) Any custom configurations would have to made again.
    Let me know if there are still doubts around any of the approach you are considering and I'll be happy to help.
    Thanks and Regards,
    Hina Rastogi

Maybe you are looking for

  • Not using the I/O drive

    Hello, Is it possible to use the X-Fi Fatality card, when the I/O dri've bay?panel?is not connected? I/m not using the I/O dri've bay?panel anymore, so i like to remove this . Pteradon

  • How do I get my USB accessory to charge?

    QuestionHow do I get my USB accessory to charge?  AnswerAter upgrading to Windows 8.1, you may have noticed that a USB device no longer charges via USB like it did in Windows 8 or earlier versions of Windows. This might be related to new power manage

  • Uploading CSS to web hosting

    Hello all, I am actually being a bit tricky by posting in these forums, as I made my webpage not with dreamweaver, but with the free product Kompozer. That is not the issue though. I finished my webpage, and used CSS to define the background image, a

  • Cannot unmount volume

    I was doing a maintenance on my system yesterday. I used DiskWarrior to do a rebuild on all the volumes. All was okay, except for my Mac HD 5 volume. I got this message when I tried to run DW 3.0.2 on this volume: Repairing disk for "Mac HD 5" Repair

  • Defining Accounts for Automatic Tax Payable Transfer Posting

    Dear all, I would like to know about accouting process of Accounts for Automatic Tax Payable Transfer Posting. Please give me a detail example about business that use this account Thanks so much Minhtb