How to make workflow/component to be specific to Run mode

Hi,
   I've a requirement where I need to make a workflow/compoent specific to run mode. For example, If we do configurations under 'config.author', those configurations effect in only author instnce and similary we crete all publish mode configurations under 'config.publih'.  In the similar way, I would like to make a workflow/componet specific to run modes.
Eg: I've created a workflow under /etc/workflow/models/test/ and this 'test' workflow should be used in only publish instance.
Is it possible to achieve in CQ?
Thanks
Siva

Siva,
I am working on similar problem. What you can do is create config like /apps/map.<Your mode example publish.dev> and then have your rules there.
Then create another config like /apps/sling/<your config example config.publish.dev>/org.apache.sling.jcr.resource.internal.JcrResourceResolverFactoryImpl .xml
And then there have setting like
resource.resolver.map.location="/apps/map.<your mode>"
Hope it make sense.
Yogesh
www.wemblog.com

Similar Messages

  • How to make a function take a specific group of constants

    I know i asked this before, maybe a year ago, but I totally forgot how to do it, and I haven't been programming much lately. But I was wondering if somebody can tell me how to make a certain function take specific constants. For example there are java functions, of which I can not remember that will only take certain values. So the function might look like:
    public getInfo(String INFONAME){}Where INFONAME has to be like one of two names or something, and they are constants that are defined somewhere else. If anybody knows what I mean by this, and knows how to create functions like that please let me know. Thank you.

    here's an overkill,
    import java.util.*;
    abstract class DoWhatever {
        public static Hashtable ht = null;
        public static Object DoWhat( String s, Object obj ) {
         if( null == ht ) {
             ht = new Hashtable();
             ht.put( ThisDoWhatever.NAME, new ThisDoWhatever() );
             ht.put( ThatDoWhatever.NAME, new ThatDoWhatever() );        
         return ( (DoWhatever) ht.get( s ) ).doWhatever( obj );
        public abstract Object doWhatever( Object obj );
    class ThisDoWhatever extends DoWhatever {
        public final static String NAME = "this";
        public Object doWhatever( Object obj ) {
         System.out.println( NAME );
         return null;
    class ThatDoWhatever extends DoWhatever {
        public final static String NAME = "that";
        public Object doWhatever( Object obj ) {
         System.out.println( NAME );
         return null;
    public class DoThisOrThat {
        public static void main( String[] args ) {
         DoWhatever.DoWhat( args[ 0 ], null );
    }

  • How to make adobe flash player content on websites run on safari browser of my ipad?

    How to make adobe flash player content on websites run on safari browser of my ipad?do I have to install adobe flash player on my ipad ?

    The flash add-on is not available for Safari on iOS. Never has been and in fact Adobe has ceased support for flash for mobile devices in general. Your options, depending on the specific sites:
    See if the site or sites in question have their own apps availabel in teh app store
    Look into some browsers such as Puffin adn iSwifter (there are others, I beleive). These browsers use a third server site to translate the flsh content into a form that the iPAd can use and restreams them to you. They may not work with all content.
    Use a computer capable of running flash.
    Seek a source of the conent that is designed for non flash use.

  • How to make Address Book obey Preferences? I run MacBook Pro 4.1 laptop,  Mac OS X 10.6.8  Address Book 5.0.3 (883) Preferences set at ... General First name following Last name   Sort for Last name Address Format Canada Font size Large Phone format set a

    How to make Address Book obey Preferences?
    I run MacBook Pro 4.1 laptop,  Mac OS X 10.6.8
    Address Book 5.0.3 (883) 
    Preferences set at ...
    General
    First name following Last name 
    Sort for Last name
    Address Format Canada
    Font size Large
    Phone format set at
    +1.123.456.7890
    When application quits - it's all forgotten and it self-resets to
    unwanted configuration.

    Whenever you remove system modifications, they must be removed completely, and the only way to do that is to use the uninstallation tool, if any, provided by the third-party developers, or to follow their instructions. If the software has been incompletely removed, you may have to re-download or even reinstall it in order to finish the job.
    Here are some general guidelines. Suppose you want to remove something called “BrickYourMac.” First, consult the product's Help menu, if there is one, for instructions. Finding none there, look on the developer's website, say www.brickyourmac.com. (That may not be the actual name of the site; if necessary, search the Web for the product name.) If you don’t find anything on the website or in your search, email the developer. While you're waiting for a response, download BrickYourMac.dmg and open it. There may be an application in there such as “Uninstall BrickYourMac.” If not, open “BrickYourMac.pkg” and look for an Uninstall button.
    If you can’t remove software in any other way, you’ll have to erase your boot volume and perform a clean reinstallation of OS X. Never install any third-party software unless you're sure you know how to uninstall it; otherwise you may create problems that are very hard to solve.
    Trying to remove complex system modifications by hunting for files by name often will not work and may make the problem worse. The same goes for "utilities" that purport to remove software.

  • How to make a component as readonly dynamically....

    Hi,
    I have a requirement and working on it since long time... I want to make a component readonly at runtime...
    I have to take a value(true/false) from message bundle and based on that value, I have to create a component as readonly or not...
    How to do this....
    I tried to do like below...
    <h:inputText style="width:170px;" value="#{bean.firstName}" readonly="#{msg.readOnlyFirstName}"></h:inputText>
    but it is giving exception like this...
    org.apache.jasper.JasperException: Could not get property readonly of component
    Please help me on this...
    thanks in advance..

    Hi,
    I think i should give answer to your question in two folds,
    #1) Dont use the properties files for such opeation(enable and diaplbe of component), and if you wnat to use this then you need to do it via backing bean. What you have to do is, you can declare a property in backing bean of that page whcih will tell rendered about the enabling/disabling the particular component. To set the property delclared in backing bean read the property file and then set it to true or false based on your need.
    #2) Use backing bean directly by omitting the property file from picture.
    By taking a look at your exception it seems that the something is wrong with readonly attribute, can u post complete exception.
    --Surya
    thoughts can change everything
    null

  • HOW TO MAKE WORKFLOW DYNAMIC..???

    HI,
    i am working on a workflow in which i have to assign users to a certain role but the problem which i am facing is that firslt all these roles were static i.e. they were hard coded earlier so the new roles which i am making,they are not reflecting in the workflow.
    So can anyone help me as to how to make it dynamic so that the new rles which i am maiking should also start reflecting..

    Calculated field should help -
    see here for more information on this topic,
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/400cc218-ea7f-4f9d-a3eb-c5289bdc05c4/sharepoint-designer-workflow-custom-subject-lines
    http://sharepoint.stackexchange.com/questions/43301/how-to-set-the-subject-of-the-email-to-have-a-combination-of-static-words-and-fi
    http://blog.henryong.com/2008/01/07/custom-sharepoint-designer-subject-lines-with-calculated-fields/
    If the subject is predefined in list, you could try to populate the data from the list using string builder.
    Hope this helps!
    Ram - SharePoint Architect
    Blog - SharePointDeveloper.in
    Please vote or mark your question answered, if my reply helps you

  • How to make a component wait for an event?

    Hey there Adobe community, I recently started using Flash Builder and I have a problem. I have a windowed application in Flash Builder with some script code and then a base64 image.
    <?xml version="1.0" encoding="utf-8"?>
    <s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
                           xmlns:s="library://ns.adobe.com/flex/spark"
                           xmlns:mx="library://ns.adobe.com/flex/mx"
                           xmlns:flexlib="http://code.google.com/p/flexlib/" preinitialize="loadImage()">
        <fx:Script><![CDATA[
            import flash.display.BitmapData;
        import flash.utils.ByteArray;
        import mx.controls.Image;
        import mx.core.UIComponent;
        import mx.graphics.codec.JPEGEncoder;
        import mx.utils.Base64Encoder;
        private var image:Bitmap;
        private var base64image:String="";
        private function loadImage():void
            var loader:Loader = new Loader;
            loader.contentLoaderInfo.addEventListener(Event.COMPLETE, imageLoaded);
            loader.load(new URLRequest("mypic.jpg"));
            trace("started loading");
        private function getimg():String
            trace("flexlib accessing image ", base64image);
            return base64image;
        private function imageLoaded(event:Event):void
            image = new Bitmap(event.target.content.bitmapData);
            base64image = getBase64FromComponent(image);
            trace("image converted");
        ]]></fx:Script>
        <flexlib:Base64Image value="{getimg()}"/>
    </s:WindowedApplication>
    The flexlib tag should render an image from a string. I want to load an image in the actionscript code, convert it to a string and then draw it. However, as soon as the application starts it attempts to render the string, which is still empty.
    The trace is like this, for some reason the getimg() is called twice:
    flexlib accessing image
    started loading
    flexlib accessing image
    image converted
    As you can see, the image isn't converted until after flexlib tries to draw it. The solution would be to make the flexlib component wait for the imageLoaded event, or make the specific tag re-initialize itself. How can I do this?

    Great, thanks. Now I can narrow my problem scope down.
    This is now the isolated culprit of my program:
    "Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: Java heap space"
    I already ran garbage collector just before 2nd method but the same error still occures.
    But if I were to comment out method 2, run the program (to generate the file from method 1), then do the opposite and run again, it will work. ie. I have to run the main program twice.
    I don't understand this. The free memory after running GC after method 1 has reset the free mem to approx 1654kb so why can't method 2 run properly?
    Even if I just run method 2 alone, the free mem it starts with is 1639kb.
    Here are the memory values during the execution.
    //all memory values in kb
    Max memory = 65088
    Allocated memory = 1984
    total free memory: 64743
    free memory before method 1: 1639
    // Run method 1
    free memory after method 1: 875
    free memory after running garbage collector: 1654
    //Run method 2
    free memory after the main computation in method 2: 4807
    free memory AFTER running garbage collector: 6733
    Any solutions?

  • How to make a spot swatch with specific name by using AppleScript?

    Hi there,
    I am trying to create a script in AppleScript to make a new spot color swatch that must be the COLOR TYPE : SPOT (with specific values). I've got it to make a global process color but can't seem to make a spot swatch. I'm using the script below :
    tell application "Adobe Illustrator"
        set docColorSpace to color space of document 1
        if (docColorSpace is CMYK) then
            set SpotColor to {cyan:100.0, magenta:0, yellow:0.0, black:0.0}
        else
            set SpotColor to {red:0.0, green:174.0, blue:239.0}
        end if
        make new spot in document 1 with properties {name:"ADHESIVE", color:SpotColor}
    end tell
    I did find an entry in an old forum that did this using javascript, however, I am not experienced with this at all and have no idea what or how to use it on a mac platform. This script is listed below.
    #target illustrator
    var docRef = app.activeDocument;
    var newCMYK = new CMYKColor();
    newCMYK.cyan = 100;
    newCMYK.magenta = 0;
    newCMYK.yellow = 0;
    newCMYK.black = 0;
    var thisSpot = docRef.spots.add();
    thisSpot.name = 'ADHESIVE';
    thisSpot.color = newCMYK;
    thisSpot.colorType = ColorModel.SPOT;
    Any help would be greatly appreciated.
    Thank you!

    You are close but missing the last property listed in the JavaScript… It translates to… 'color type:spot color'
    tell application "Adobe Illustrator"
    set docColorSpace to color space of document 1
    if (docColorSpace is CMYK) then
    set SpotColor to {cyan:100.0, magenta:0, yellow:0.0, black:0.0}
    else
    set SpotColor to {red:0.0, green:174.0, blue:239.0}
    end if
    make new spot in document 1 with properties {name:"ADHESIVE", color:SpotColor, color type:spot color}
    end tell
    BTW… The use of JavaScript in the CS apps is more common because of its 'platform independence' There is a toolkit supplied along with the CS install.

  • How to make Webgate redirect to a specific resource based on AD Attributes?

    My client has already purchased Oracle Fusion Middleware 11g, which contains the OID 11g suite. They have an initiative to enable SSO based access to their business apps for both internal and external users. They have already implemented AD and also FMW 11g with OID integrated with AD.
    We need to provide a path way for legacy portals to integrate into this environment. One the goals is to have a single URL (let's call it one.company.com) by which employees, customers & business partners access all business applications. The long term goal is to leverage WebCenter to be the portal framework, which provides access to all business app. However, the client has prioritized the SSO integration over the portal framework integration at this point.
    So the interim solution needs to address the following use case:
    Internal User:
    1. Log into workstation via MS AD DC, get Kerberos token set on workstation.
    2. Open browser and navigate to https://one.company.com, browser either silently authenticates via Windows Native Authentication (IE for example) or presents user a challenge box asking for authen&author creds (FF for example).
    3. WebGate installed on OHS works with OAM (which works with OID) to authenticate the user, assume Auth OK
    4. <Some Component> works with OAM to obtain user's roles. If user has role 1 redirect to site 1 (assume this is the legacy portal, which has been modified to work with Oracle SSO), otherwise if user has role 2, then redirect to site 2 (assume this is web center)
    The reference to <Some Component> in #4 is what we need help answering. We suspect it is WebGate, and from some reading I have done I know that there are apache directives that can be used to do conditional redirects. I'm just missing the link between getting the roles out of OAM and instructing the web server which resource to redirect to based on OID role.
    We also have a very similar use case for external access (to the same site, https://one.company.com). It will be assumed that all users are AD enabled even external ones. For external access, all users will first land on a company wide common login page, which will ask for AD user name & pwd. After submitting credentials, the same scenario plays from above, starting at step 3. All applications will be programmed to read the obssoToken (via browser cookie or server headers) to understand user details.
    Has anyone had to architect this kind of deployment before? If so, how did you deal with it? Was it as simple as the whole WebGate/Apache redirect setup I am thinking of?
    Thanks,
    FM

    I choked on my mango lassi while reading this..but as our chinese brothers and sisters say, A journey of a thousand miles begins with a single step.
    user8214884 wrote:
    2. Open browser and navigate to https://one.company.com, browser either silently authenticates via Windows Native Authentication (IE for example) or presents
    user a challenge box asking for authen&author creds (FF for example).FF can deal with Kerberos just like IE can via SPNEGO although getting it to work like IE is a different story. But let's say FF doesn't do Kerberos or let's say it's an external user. Have you tried implementing this mechanism with OAM 11g? I would start there. You may not get to your next steps.

  • How to make Sales Person LOV org specific in case of Multi Org Setup

    HI,
    We are working on 11.5.10.2
    We have a multi org setup and i am required to make the sales person LOV to populate only the org specific salespersons, at the sales order, quote, service contract levels.
    Is it achiveable and if yes.....please letme know the way.
    Reg,
    Ajay Agarwal.

    Hi
    Try to play around with the security profile in the HRMS and attach it to the responsibility level
    Regards
    Ramesh Kumar S

  • How to make Messages appear on a specific View?

    Hi,
    we are bulding a webdynpro application which uses several views in different components. We are using the IWDMessageManager to display messages. The strange thing is, that the messages do not always appear in the view You would expect. For example if a message is raised in the component-controller of component A, the message might appear in a View of component B, or even does not appear at all.
    I guess that the messages tend to show up in a view which has been loaded first, but I can not reproduce this clearly.
    How may I control on which view a message appears?
    Thanks in advance and regards
    Jan Hempel

    Hi,
    The messages are always displayed in the Message Area that is loaded first in a perspective(Combination of DC's views). This is an extract from Message Area documentation.
    <-----
    If there are several suitable instances, the oldest one (with respect to creation time) is used. Note that it's the application developer's responsibility not to place a MessageArea in a view in such a way that MessageArea is not permanently visible, except if the visibility (or enabled) property of the MessageArea is set accordingly. Also beware that the tooltip property might have no effect.
    >
    Check this link too !
    Re: Error getting messeges in Webdynpro
    Regards
    Bharathwaj

  • How to make [Search Mozilla Support] honor specification of a phrase?

    Many search facilities will honor a phrase. If I specify "tab character" [including the quote marks!], they will search for the phrase "tab character" and only return links to documents with that phrase. As I discovered when trying to answer a question about controlling how the tab character is rendered, the search function in Mozilla support returns links to everything dealing with browser tabs. I tried using s-quote marks rather than d-quote marks, but that did not help. I could not find any button with a name like "Advanced" to get more control over the search. So far as I can tell, [Search Mozilla Support] insists on treating the phrase "tab character" as a search for anything with the word "tab" or the word "character".

    Yes, using quotes to specify a search term is one of the most wanted features for me (and probably a lot of others) on this forum, but it still hasn't been implemented.<br />
    Only a Google site search will work to search for a multi-word phrase enclosed in quotes.

  • How to make software component available inside IB (Design)

    I have created a product/component version in SLD. But  I cannot see it in IB. What did I miss ?

    Hi
    After creating the product/component in SLD u have to import them into IR.
    Go thru this link to do that
    http://help.sap.com/saphelp_nw04/helpdata/en/9c/7a973ca83a4601e10000000a114084/content.htm
    Regards
    Arpit Seth

  • How to make one component to be displayed in multiple containers

    I have a JRadioButton group which I want to add into both tool bar and one of the control dialog. Is there any way to share the instance?
    Thanks

    I'm bored, so I can answer the question (sorry camickr for ruining your work)
    @Op. One instance of a swing component can't be placed in two different containers or at two locations. You need to create two instances instead. That is, create a panel class which has your radiobuttons on it, create two instances of the class, and place the instances where you want them to be. The panel class is the view in the mvc concept, and they can both share a data model.
    Kaj

  • How to make a field as display in a change mode

    hi gurus
    is there any option to reduce the accessblity of a particular field  has to be set as deactive mode.
    Eg
    In tcode XD02
    I have to deactive any one of the field in this.
    please explain is there any chance to do ?
    regards
    Maithrayan

    Transaction variants simplify transaction flow by:
    Inserting default values in fields
    Hiding and changing the ready for input status of fields
    Hiding and changing the attributes of table control columns
    Hiding individual menu functions
    Hiding entire screens
    Transaction variants are actually made up of a series of screen variants. The field values and field attributes for each screen in a transaction variant are stored in screen variants. Each variant is assigned to a transaction. Variants may, however, contain values for screens in multiple transactions, if transaction flow makes this necessary. The transaction the variant is assigned to serves as its initial transaction, whenever you start the variant.
    Both client-specific and cross-client transaction variants exist. Screen variants are always cross-client; they may, however, be assigned to a client-specific transaction.
    A specific namespace has been designated for cross-client transaction variants and screen variants and they are both automatically attached to the Change and Transport System. Client-specific transaction variants can be transported manually.
    Transaction and screen variants may be created for all dialog and reporting transactions. However, there are certain restrictions that apply to their use, depending on how their corresponding transactions have been realized internally.
    Transaction variants may not be created for transactions already containing pre-defined parameters (parameter transactions and variant transactions).
    You can only create transaction variants for dialog transactions and reporting transactions.
    Only "normal" screens, dialog boxes, and subscreens can be included in the variant.
    Screen variants are automatically created anytime you create a transaction variant.
    To create a transaction variant, proceed as follows:
    Choose Tools ® AcceleratedSAP ® Personalization to call the transaction variant maintenance transaction, or use transaction code SHD0.
    Enter the name of the transaction and the transaction variant on the initial screen.
    The system creates a cross-client transaction variant. If you want to create a client-specific transaction variant, choose Goto ® Client-specific transaction variants to branch the client-specific transaction variant maintenance transaction.
    Client-specific transaction variants only exist in the client in which they are created. The field contents of the transaction variant must be available in this client. Cross-client transaction variants are available throughout the system, regardless of the client currently being used. The field contents of these transaction variants must be available in all clients.
    Choose Create to create a variant.
    The system calls the application transaction that you want to create a variant for.
    Enter the values you want to use in the input fields. Each time an action is completed (choosing for example), a dialog box appears listing the fields of the current screen with their current values. The kind of dialog box called depends on the kind of screen currently being processed ( see Requirements).
    Choose the options you want. The following options checkboxes can be selected: Adopt field values
    Saves the field values you have inserted on the current screen
    Resetting this field (deselecting it) allows you to delete all values saved for this screen in your transaction variant.
    Do not display screen
    Hides screen
    This is only possible if settings are copied to your variant (Adopt field values).
    With contents
    Field contents are saved with it
    Output only
    Field is no longer ready for input (display mode only)
    Invisible
    Hides field
    Mandatory
    Required field
    You may or may not be able to select each of these checkboxes for every field depending on the field's type (see Requirements).
    Enter a screen variant name and corresponding short text if necessary.
    Screen variants are created automatically for each screen where values have been saved (copied). Enter screen variant names in the Name of screen variant: field. These names must be unique. If the system is able to find a unique name for a screen variant, it is automatically inserted into this field. (The convention reads as follows: .)
    The following pushbuttons are available from this dialog box:
    Cancel
    Displays current application transaction screen again. Here you can make changes to your settings.
    Deactivate menu functions
    Deactivates menu functions in an additional dialog box.
    GuiXT
    Allows user to edit a GuiXT script for the current screen ( GuiXT).
    Exit and Save
    Exits and saves application transaction.
    Choose the function Continue to proceed to the next screen in your application transaction. Repeat steps 3-5 for all further screens in the transaction.
    When you have reached the last screen of the transaction and inserted the values you want to insert, choose Exit and Save. The system exits the application transaction and saves your entries. A list appears containing all of the screens in the application transaction that you want to save entries for (that is, all screens for which screen variants will be created).
    You can also branch to this list using the Change values function during the function selection process.
    Enter a short text for your transaction variant.
    Display settings can be changed as needed from this list in the future. Settings that require information at application transaction runtime (field values, table control columns) cannot be changed from this list.
    Choose Save. The system saves your transaction variant and the corresponding screen variants. The Workbench Organizer dialog box is displayed for the transaction variant and for each screen variant. Use it to assign each of these objects to a package.
    Deleting Preassigned Values
    You can delete all of the values you assigned to fields of a single screen in a transaction variant by resetting (deselecting) the Adopt field values checkbox. This deletes the screen from your variant, even those entries that were transferred to the variant during previous processing.
    If a screen variant has already been created for this screen, then the system simply deletes the screen variant's transaction variant assignment; the screen variant itself is not actually deleted.
    Individual fields can be deleted from transaction and screen variants by resetting (deselecting) their corresponding checkboxes.
    Also refer to document;
    http://help.sap.com/saphelp_nw04s/helpdata/en/67/232037ebf1cc09e10000009b38f889/content.htm

Maybe you are looking for