Adf TaskFlow file management

hi all,
according our poject structure, we have a lot of bound taskflow file.
Then, we want to split into different folder under WEB-INF folder. eg(WEB-INF/POC)
can we do that way?
but after i did, i get the following exception.
<RegistrationConfigurator><handleError> Server Exception during PPR, #1
oracle.adf.controller.ControllerException: ADFC-02001: The ADF Controller cannot find '/WEB-INF/POC/dyna1-task-flow-definition.xml'.
     at oracle.adfinternal.controller.metadata.provider.MdsMetadataResourceProvider.getMetadataObjects(MdsMetadataResourceProvider.java:460)
     at oracle.adfinternal.controller.metadata.provider.MdsMetadataResourceProvider.loadUnmutalbeMetadataResources(MdsMetadataResourceProvider.java:367)
     at oracle.adfinternal.controller.metadata.provider.MdsMetadataResourceProvider.getResources(MdsMetadataResourceProvider.java:179)
     at oracle.adf.controller.internal.metadata.MetadataService.getTaskFlowDefinition(MetadataService.java:217)
     at oracle.adfinternal.controller.activity.TaskFlowCallActivityLogic.findTaskFlowDefinition(TaskFlowCallActivityLogic.java:1071)
     at oracle.adfinternal.controller.activity.TaskFlowCallActivityLogic.execute(TaskFlowCallActivityLogic.java:162)
     at oracle.adfinternal.controller.engine.ControlFlowEngine.executeActivity(ControlFlowEngine.java:989)
     at oracle.adfinternal.controller.engine.ControlFlowEngine.doRouting(ControlFlowEngine.java:878)
     at oracle.adfinternal.controller.engine.ControlFlowEngine.doRouting(ControlFlowEngine.java:777)
     at oracle.adfinternal.controller.engine.ControlFlowEngine.routeFromActivity(ControlFlowEngine.java:551)
     at oracle.adfinternal.controller.engine.ControlFlowEngine.performControlFlow(ControlFlowEngine.java:147)
     at oracle.adfinternal.controller.application.NavigationHandlerImpl.handleAdfcNavigation(NavigationHandlerImpl.java:109)
     at oracle.adfinternal.controller.application.NavigationHandlerImpl.handleNavigation(NavigationHandlerImpl.java:78)
     at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:130)
     at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:190)
     at oracle.adf.view.rich.component.fragment.UIXRegion.broadcast(UIXRegion.java:148)
     at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:90)
     at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:309)
     at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:94)
     at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:102)
     at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:90)
     at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:309)
     at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:94)
     at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:96)
     at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.broadcastEvents(LifecycleImpl.java:812)
     at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:292)
     at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:177)
     at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
     at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
     at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
     at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
     at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
     at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
     at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:191)
     at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
     at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:97)
     at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
     at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
     at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
     at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:247)
     at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:157)
     at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
     at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
     at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:94)
     at java.security.AccessController.doPrivileged(Native Method)
     at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
     at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
     at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:138)
     at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:70)
     at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
     at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:159)
     at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
     at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:326)
     at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
     at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
     at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
     at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3592)
     at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
     at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
     at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2202)
     at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2108)
     at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1432)
     at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
     at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
Caused by: oracle.mds.core.MetadataNotFoundException: MDS-00013: no metadata found for metadata object "/WEB-INF/POC/dyna1-task-flow-definition.xml"
     at oracle.mds.core.MetadataObject.getBaseMO(MetadataObject.java:1036)
     at oracle.mds.core.MDSSession.getBaseMO(MDSSession.java:2769)
     at oracle.mds.core.MDSSession.getMetadataObject(MDSSession.java:1188)
     at oracle.mds.core.MOResolver.getMetadataObjects(MOResolver.java:203)
     at oracle.adfinternal.controller.metadata.provider.MdsMetadataResourceProvider.getMetadataObjects(MdsMetadataResourceProvider.java:414)
     ... 63 more
With Regards,
WP

Hi waiphyo,
I think you follow this steps when you want to move the boundedTaskflow.xml file in to different folder :
1- select the file from Application Navigator.
2- from Refactor (in menu bar) choose move.
3- create new folder and save the file in this folder.
if you used this taskflow in bounded/unbounded taskflow you should select this bounded/unbounded taskflow (the container of the moved taskflow) thin in the taskflow definition structure select the moved task flow and check for its path in property Inspector.
Sameh Nassar
Edited by: Sameh Nassar on Jan 25, 2010 1:02 PM

Similar Messages

  • ADF Taskflow Transaction Management Pattern

    We have a project that consumes public common taskflows from a shared library.
    How should we define the transaction management of these public common taskflows?
    Who is respondsible for the transaction management?
    I am able to understand the various transaction handling mechanisms suppported by ADF taskflow from the following link in the Developer's guide:-
    http://download.oracle.com/docs/cd/E15523_01/web.1111/b31974/taskflows_complex.htm#BABICCGC
    But I would like to understand the right pattern for implementating the above.
    Please provide your inputs/links on the same.
    Thanks in advance,
    Navaneeth

    There is no "right" way to do it. If the task flows are standalone, independent transactions that operate independently of any master task flows, then you can have them manage their own transactions; if you want them to join any existing transaction, you would do that. Without an example and without understanding the purpose for which you are building the common taskflows, it's pretty impossible to say much of anything.
    John

  • ADF Taskflows with EJB and pageflow scope

    Hi,
    I am trying to create a simple registration page which is very simillar to FOD customer registration using EJBs instead of ADF BC.
    I can achieve the registration in one page but I wanted to try this using a wizard based process using ADF taskflows.
    I created a bounded taskflow with 3 pages. page1 is employee details, page2 is job details, page 3 is the summary page. I have JPA entities for Employee and Jobs and an EJB3 session Facade. I have used the Employees default constructor to create the UI bindings from the constructor section of the data controls. This creates an EmployeesIterator which I use it for bindings on all the three pages.
    My question is can I use this Iterator binding in pageflow scope? If yes How do I do this?
    The other way is to use a managed bean in pageflow scope and have UI bindings to the variables in managed bean. This option will work but I will not be utilising any of the features of ADF bindings.
    Can anyone please suggest which is the better option.
    Thanks
    Venkatesh

    Hi,
    pageDef files can be shared, but their instances aren't. The caching is on the data control side, which means that instead of using a constructor you would break up the input form into method calls like
    createPerson(String, fn, String ln, String address)
    createInterest(String hobby1, String hobby2);
    dagging and dropping the method calls should the reate an input form. Submitting the forms allows you to build a new person object on the session facade which at the end is committed. This way the ADF binding works across pages, operating on a single new object
    Frank
    Ps.: Note that I did not run this example for a test

  • How to get BPM Payload attribute value in ADF TaskFlow

    Hi,
               Activities which I did : I have created ADF Project. Then I created ADF TaskFlow through 'ADF TaskFlow Based on Human Task' option by locating BPM task. So now TaskFlow is been generated and also respective dataControl value also generated. In TaskFlow I created new .jspx file. I am going to design this jspx page by drag and drop from VO instances from dataControl. So for this jspx page, at runtime value will be populated from DB Table.
                      My Requirement :  When the Flow initiated, there will be Parameter value passed to the TaskFlow through Payload which is available in DataControl. So now I based on the Payload parameter value I need to filter DBTable and show the respective value in jspx page which I created in TaskFlow. So getting Payload value and applying filter on VO based on Payload parameter value has to be done before rendering Page.
    I tried to achieve this schenario as like below :
           - Assume like there is attribute called 'transactionId', for which value will be passed to the TaskFlow through DataControl. I created VO based on EO and appended where clause as : "VO.Trans_Id = : bindVar". Created bindVariable called 'bindVar'. In jspx page I just Drag and Dropped VO instance as form. And also I drag and Dropped 'transactionId' as outputText from Payload. And also I created ExecuteWithParams in Binding section of PageDef and mapped that one with invokeAction item in executable section. So now both payload Iterator and invokeAction  will be created in PageDef. I kept Iterator as in the order of : PayloadIterator at first and InvokeAction second one, So that at runtime it will execute in that order. And also I given "refresh" property to payloadIterator and invokeAction to 'renderModel' and I mapped PayloadIterator id to  refreshAfter property of InvokeAction iterator. Now at runtime, So at runtime updated/Newvalue will be retrived to Payload attribute by executing payloaditerator. So now for 'transactionId' value vill be retrieved. Next invokeAction will take value from newly retrieved 'transactionId' as input and execute query. So now VO will be filtered and need to be shown. But instead of that getting error saying like 'No outcome metadata specified for method call activity 'null'.'
    Is this way is correct? If yes, then What mistake which I have done?
    Is any other way to acieve this schenario?
    Do the needful.
    Thanks with Regards,
    PraveenKumar.N

    Guessing you might have looked at this at some point, but you might want to consider using the setCurrentRowWithKeyValue method to do this.
    Here's a blog post that I wrote a while back that goes through step-by-step what I think you're trying to accomplish:  Using a BPM Process Variable on an ADF form to Retrieve Database Information | AVIO Consulting
    Hope this helps,
    Dan

  • Custom ADF Taskflow to be displayed as part of Human Task notification

    Hi all,
    I am trying to display a custom ADF taskflow as part of notification of a Human Task. I see multiple ways of implementing it and need guidance on how to go about this.
    As a first step, I created a taskflow based on the human workflow task. This is WEB-INF/oracle/apps/xyzcommon/activities/publicUi/worklist/flow/myTaskflow.xml. Then I see 2 options -
    Option 1 - Use setTaskDisplayUrl while creating the task
    oracle.bpel.services.workflow.task.model.Task task = objectFactory.createTask();
    String AppUrl = oracle.topologyManager.client.deployedInfo.EndPointProvider.getExternalEndpoint("xyzCommon");
    String taskflowUrl = AppUrl + "/faces/adf.task-flow?_id=myTaskflow&_document=WEB-INF/oracle/apps/xyzcommon/activities/publicUi/worklist/flow/myTaskflow.xml";
    task.setTaskDisplayUrl(taskflowUrl);
    Option 2 - Define the taskflow in the Enterprise Manager - Add or remove the URI for the user defined task details application.
    Setup the Application Name=worklist, Host Name, HTTS Port, URL=/xyzCommon//faces/adf.task-flow?_id=myTaskflow&_document=WEB-INF/oracle/apps/xyzcommon/activities/publicUi/worklist/flow/myTaskflow.xml
    Questions -
    1. Are both the above options required to get my notification correct or is just one of them enough? If one of them is enough, which is better to use?
    2. Is creating the taskflow from the human workflow task the only way to customize my notification to show a taskflow?
    Thanks,
    Srini

    Learnt that I need to follow this link and no explicit setting is required in code.

  • How to set a root directory for file management in web application

    Is it possible to set a default root directory for file management for a web application ?
    We would upload some files and store them in the web server.
    When we write the uploaded files without any path, the files are written in the config directory into the jdeveloper embedded oc4j directory.
    When we write the uploaded with a relative path ("/somedir/filename"), the files are written in C:/somedir/filename.
    We would like that all file management with relative path into the web application refer automatically to a given root directory (for example defined in web.xml).
    Is it possible ?

    I'm using the standard upload in adf faces.
    The problem is not during upload. This is managed in a temporay directory defined in web.xml. The problem is for writing the file that was uploaded (upload give us an inputStream we have to write somewhere, eventually after unzipping).
    Here is an example of our current code.
    if (mimeType.equals("application/x-zip-compressed") |
    mimeType.equals("application/zip")) {
    File destZipFile =
    new File(rootDirectory + "/" + parametersDirectory +
    "/" + uploadedFile.getFilename());
    BufferedInputStream isZipFile =
    new BufferedInputStream(uploadedFile.getInputStream());
    FileOutputStream fosZipFile =
    new FileOutputStream(destZipFile);
    BufferedOutputStream bosZipFile =
    new BufferedOutputStream(fosZipFile, BUFFER);
    // read and write until last byte is encountered
    while ((currentByte = isZipFile.read(data, 0, BUFFER)) !=
    -1) {
    bosZipFile.write(data, 0, currentByte);
    }

  • Javascripts and ADF Taskflows

    Hello All,
    I am using JDeveloper 11.1.1.5 (on Fedora 64-bit).
    This one has been driving me nuts for a while. I have uploaded a simple testcase here - http://dox.bijesh.info/SimpleJS.zip.
    In this particular testcase, I have an ADF taskflow composed of 2 page fragments. This taskflow is embedded as a region in a JSF page. Both the page fragments include some javascript embedded via af:resource and invoked through a clientListener on a button within each. Now, the JS on any page other than the "default activity" page does not get fired on the button action. It is as if the javascript did not get loaded at all. In fact when I examine this in Chrome, the error console shows an error as soon as I navigate to the second page fragment - "Uncaught ReferenceError: jspage2 is not defined".
    I have tried using trh:script and that had the same problem. This happens with referenced JS files (through the source attribute) too.
    My original use-case is to build a reusable Maps component which involves quite a bit of Javascript. Being a reusable library, I wouldn't ideally have control of where my taskflow will be embedded. And therefore embedding the JS in the initial pages is not a viable solution.
    All suggestions are welcome.
    Best Regards,
    Bijesh

    Hi Frank,
    First thanks for your answer.
    I moved my script this way:
    <?xml version='1.0' encoding='UTF-8'?>
    <ui:composition xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
                    xmlns:f="http://java.sun.com/jsf/core" xmlns:dvt="http://xmlns.oracle.com/dss/adf/faces">
        <af:decorativeBox id="db2" theme="light" binding="#{backingBeanScope.beanDvtMapas.db2}" clientComponent="true">
            <f:facet name="center">
                <dvt:map startingX="-47.76" startingY="-18.84" mapZoom="2"
                         mapServerConfigId="mapConfig" baseMapName="CTBC_IREDES.MAPA_TASKFLOW"
                         inlineStyle="width:100%; height:450px;" id="m2"
                         srid="8292" unit="METERS" copyrightText="Todos os direitos são reservados à ALGAR TELECOM"
                         binding="#{backingBeanScope.beanDvtMapas.m2}">
                    <f:facet name="rtPopup"/>
                    <f:facet name="popup"/>
                </dvt:map>
            </f:facet>
            <f:facet name="top">
                <af:group id="grp" binding="#{backingBeanScope.beanDvtMapas.grp}">
                    <dvt:mapToolbar mapId="m2" id="mt2" showViewMenu="false"
                                    binding="#{backingBeanScope.beanDvtMapas.mt2}" showDistanceTools="false"
                                    showSelectThemeDialog="false" showSelectThemeMenuItem="false"
                                    showSelectionTools="false"/>
                    <af:commandButton text="escondido" id="cb1"
                                      binding="#{backingBeanScope.beanDvtMapas.cb1}" visible="false" clientComponent="true">
                        <af:serverListener type="clickMap"
                                           method="#{backingBeanScope.beanDvtMapas.recebeIpid}"/>
                    </af:commandButton>
                    <af:resource type="javascript" source="../js/mapUtil.js"/>
                    <af:resource type="javascript">
                         var temas = new Array();
                         temas[0] = 'PCM_DISTRIBUICAO';
                         temas[1] = 'CAIXA_TERMINAL';
                         var map = AdfPage.PAGE.findComponent( 'r1:0:m2' );
                        alert(map); //undefined
                        showMapWithThemes('m2', temas);
                    </af:resource>
                </af:group>
            </f:facet>
        </af:decorativeBox>
        <!--oracle-jdev-comment:auto-binding-backing-bean-name:beanDvtMapas-->
    </ui:composition>My script was loaded but it didn't find the components in the page fragments, what can I do to solve this question?
    Do you have a idea?
    Today I try to search the components this way:
    AdfPage.PAGE.findComponent( REGION_ID + 0 + COMPONENT_ID)[]s,
    Renan

  • ContentPresenter ADF Taskflow - Avoid re-write of content URL

    Hello,
    I see content presenter ADF taskflow has a feature that re-writes content URL. In my case, i show a HTML content item in content presenter which contains a download link to a DOC file present in UCM (as below). On render, internally content presenter re-writes the URL as below.
    Experts: I want to know if there is any way to override this feature of content presenter.
    1) Its not just ".doc" extensions, any link starting with "/cs" is re-written by content presenter
    ContentPresenter - Avoid re-write of content URL
    Original HTML from UCM:
    Please <a href="/cs/groups/asset/documents/contenttype1/~asded/ad1.doc"> click here </a> </p>
    Rendered as below by Contentpresenter:
    Please <a href="/appcontent/faces/oracle/webcenter/sitestructure/render.jspx?datasource=UCM%23dDocName%DOC_CONTENTID"> click here </a> </p>
    Appreciate help.
    PS: This Taskflow was OOTB built for WebCenter and may be should be part of that forum, but given frequency of responses, I have add here.

    Hi.
    As you said, Content Presenter has a urlRewriterClass in the service definition of type oracle.webcenter.content
    My recommendation is to open an Oracle-SR to ask Oracle for the best approach or what to do with it.
    A solution can be overwrite the Java Class of the rewriter just to avoid the transformation of the URL. It isn't recommendable.
    I hope it helps.
    Regards.

  • Using bash as your file manager?

    Hello,
    My belief is that all file managers suck. There are no exceptions to this. So, for the past few months, I've been sourcing a file with a bunch of tricks I've invented / found through browsing the web to make using just bash as a file manager much more convenient.
    Here's what I currently use:
    # fm v1.9.1 by Kiah Morante
    # A very simple file manager.
    # Depends on pycp/pymv, http://github.com/yannicklm/pycp and feh
    # 'source' this file in a BASH shell
    showHidden=0 # Hidden files not shown
    showDetails=0 # ls is replaced with ls -lh if showDetails is 1
    shopt -s autocd # cd to a dir just by typing its name
    PROMPT_COMMAND='[[ ${__new_wd:=$PWD} != $PWD ]] && list; __new_wd=$PWD' # ls after cding
    # Shortcuts
    source ~/.config/fm/shortcuts # Call all custom shortcuts
    alias ..='cd ..'
    alias ...='cd ../..'
    alias ....='cd ../../..'
    alias h='cd ~'
    alias n='cd "$n"'
    # Keybindings
    bind '"\C-l":"list\C-m"'
    bind '"\C-h":"hide\C-m"'
    bind '"\C-o":"details\C-m"'
    bind '"\C-f":"makedir\C-m"'
    bind '"\C-n":"n\C-m"'
    bind '"\C-y":"cpwd\C-m"'
    bind '"\C-p":"cd "$OLDPWD"\C-m"' # Hint: You could also type '~-'
    # FM prompt appearance
    if [[ $(whoami) == 'root' ]]; then
    # So that the user knows if they have root privileges:
    PS1="\[\e[0;32\]mf\[m\e[m\] \[\e[0;31m\]root\[\e[m\] \[\e[0;34m\]\w \[\e[m\]\[\e[0;31m\]> \[\e[m\]"
    else
    PS1="\[\e[0;32\]mf\[m\e[m\] \[\e[0;34m\]\w \[\e[m\]\[\e[0;31m\]> \[\e[m\]"
    fi
    # Functions
    # Usage
    fmhelp () {
    echo "hide - toggle hidden (hidden by default)
    ls - lists contents of dir(s) passed in args.
    lsd - list directories
    cd - changed to directory \$1
    cp \$@ \$2 - copies file from \$1 to \$2
    mv \$@ \$2 - moves file from \$1 to \$2
    rm \$@ - deletes \$@
    sc \$1 \$2 - make a shortcut called \$1 pointing to \$2. If no \$2 is passed, it is evaluated as \$PWD
    cpwd - copy current working directory
    .., ..., .... - cd .. etc.
    o \$1 - opens \$1 with xdg-open
    hm - how many files are in the current directory
    details - show file details (ls -lh)
    fmhelp - this help menu
    n - Intelligent guess of the next dir you wish to cd to. Last $1 in open, list, or makedir; last argument in copy or move; pwd before a cd
    ~- - BASH shortcut for \$OLDPWD
    img - feh frontend with the following usage:
    img -t \$2 - views the dirs/images specified in \$2..\$n as clickable thumbnails
    img -s \$2 \$3 - views the images specified in \$3..\$n as a slideshow with a slide change speed of \$2 seconds
    img \$@ - views the dirs/images specified
    Shortkeys:
    Ctrl-f - mkdir
    Ctrl-h - hide
    Ctrl-l - ls
    Ctrl-n - cd \$n
    Ctrl-o - details
    Ctrl-p - cd \$OLDPWD
    Ctrl-y - cpwd
    Ctrl-u - clear line # urxvt default"
    # Toggle display hidden files
    # If $showHidden is 1, hidden files are shown
    hide () {
    showHidden=$(( 1 - $showHidden ))
    list
    # Toggle display file details
    # If $showDetails is 1, file details are shown
    details () {
    showDetails=$(( 1 - $showDetails ))
    list
    # ls
    listToggle () {
    if [[ $showHidden == 1 && $showDetails == 1 ]]; then
    ls -C --color -A -lh "$dir"
    elif [[ $showHidden == 1 && $showDetails == 0 ]]; then
    ls -C --color -A "$dir"
    elif [[ $showHidden == 0 && $showDetails == 1 ]]; then
    ls -C --color -lh "$dir"
    else
    ls -C --color "$dir"
    fi
    list () {
    clear # Unclutter the screen
    # List pwd if no $1
    if [[ $@ == "" ]]; then
    set '.'
    fi
    # List multiple folders:
    for dir in "$@"
    do
    listToggle
    done
    n="$1" # See 'n' in fmhelp
    # use feh to view thumbnails/images/slideshow
    img () {
    case "$1" in
    -t) nohup feh --thumbnails "${@:2}" --thumb-height 120 --thumb-width 120 -S filename -d --cache-thumbnails -B black > /dev/null 2>&1 & ;;
    -s) nohup feh "${@:3}" -S filename -d -B black --slideshow-delay "$2" > /dev/null 2>&1 & ;;
    *) nohup feh "$@" -S filename -d -B black > /dev/null 2>&1 & ;;
    esac
    list
    # cp
    copy () {
    if [[ $showHidden == 1 ]]; then
    pycp --interactive --all "$@"
    else
    pycp --interactive "$@"
    fi
    list
    n="${@:(-1)}" # n is the last argument (where stuff is moved to)
    # mv
    move () {
    if [[ $showHidden == 1 ]]; then
    pymv --interactive --all "$@"
    else
    pymv --interactive "$@"
    fi
    list
    n="${@:(-1)}"
    makedir () {
    if [[ $1 == "" ]]; then
    read -e n
    set "$n"
    fi
    if mkdir -- "$1"; then
    list # Update pwd to show new dir(s) that have been made.
    n="$1"
    fi
    # rm
    remove () {
    rm -rfI "$@"
    list
    # open files
    o () {
    # To use xdg-open
    #nohup xdg-open "$1" > /dev/null 2>&1 &
    if [ -f "$1" ] ; then
    case "$1" in
    *.tar.bz2) tar xjf "$1" ;;
    *.tar.gz) tar xzf "$1" ;;
    *.bz2) bunzip2 "$1" ;;
    *.rar) rar x "$1" ;;
    *.gz) gunzip "$1" ;;
    *.tar) tar xf "$1" ;;
    *.tbz2) tar xjf "$1" ;;
    *.tgz) tar xzf "$1" ;;
    *.zip) unzip "$1" ;;
    *.Z) uncompress "$1" ;;
    *.7z) 7z x "$1" ;;
    *.pdf) nohup zathura "$1" > /dev/null 2>&1 & ;;
    *.html) nohup luakit "$1" > /dev/null 2>&1 & ;;
    *.blend) nohup blender "$1" > /dev/null 2>&1 & ;;
    *.avi) nohup mplayer "$1" ;;
    *.wmv) nohup mplayer "$1" ;;
    *.rmvb) nohup mplayer "$1" ;;
    *.mp3) nohup urxvtc -si -sw -sh 30 -e mplayer "$1" > /dev/null 2>&1 & ;;
    *.flv) nohup mplayer "$1" ;;
    *.mp4) nohup mplayer "$1" ;;
    *.ogg) nohup urxvt -si -sw -sh 30 -e mplayer "$1" > /dev/null 2>&1 & ;;
    *.wav) nohup audacity "$1" > /dev/null 2>&1 & ;;
    *.jpg) img "$1" ;;
    *.jpeg) img "$1" ;;
    *.JPG) img "$1" ;;
    *.png) img "$1" ;;
    *.gif) nohup gpicview "$1" > /dev/null 2>&1 & ;;
    *) nohup urxvt -si -sw -sh 30 -e vim "$1" > /dev/null 2>&1 & ;;
    esac
    else
    echo "'$1' is not a valid file"
    fi
    n="$1"
    # Add shortcuts
    makeShortcut () {
    if [[ $2 == "" ]]; then
    set $1 .
    fi
    echo ""$1"=\""$2"\"
    alias "$1"='cd \""$2"\"'
    " >> ~/.config/fm/shortcuts
    source ~/.config/fm/shortcuts
    # Copy pwd to clipboard
    cpwd () {
    echo \"$(pwd)\" | xclip
    # List directories
    lsd () {
    ls -F "$@" | grep \/$
    # Command aliases
    alias mv="move"
    alias sc="makeShortcut"
    alias cp="copy"
    alias ls="list"
    alias rm="remove"
    alias mkdir="makedir"
    alias hm="ls -l . | egrep -c '^-'"
    list # ls when fm starts
    Could all of you fellow file manager-haters post your little tricks, whether just a few lines added to ~/.bashrc or fully fledged files that you source like mine?
    Last edited by greenmanwitch (2011-02-07 19:58:40)

    3]) wrote: once you have video files cluttered all throughout your hard drive and folders all over, thats where the 'bash' filemanager system lacks its use in terms of effectiveness.
    Actually, I found this to be one of the best advantages of using bash is that it forces a user to think about file organization and making useful naming schemes for files.
    For example, instead of having 1000+ media files in one directory I subcategorize theme by genre or whatever, and then probably subcategorize them again.
    Then I usually rename the files to something meaningful, like if I have 50 pictures of my kids birthday, just do a for each loop on the directory and rename all the files donovan_birthdayX.jpg where X is an integer incrementation.
    essentially. just don't "have files cluttered all throughout you hard drive and folders all over". and your life will be much happier regardless of how you manage your files.

  • I would like to find a file manager/ image browser like ACDSee 32

    Coming from the Windows environment (it is where I make my living) I have found the Mac environment to be significantly different and pose a considerable learning curve especially when it comes to file management. I like to be able to view and manage files from within the same application but have yet to find something that will allow me the freedom I am used to. Ideally I am looking for something like ACDSee 32 (the last good version) which acts like a typical file manager but has a full sized preview pane as well. This allows you to preview a picture then drag and drop it into a folder of your choosing. The software also allows you to do some minor edits and create folders as well.
    Preview on my MacBook is a still born idea, iPhoto want to take all of my photos and store them in a proprietary environment (not happening) and Xie is a very nice file viewer but does nothing else. Any useful suggestions of a software that will do what I would like it to do would be appreciated.
    Thank you.

    Photoshop.

  • How do I... (1) "play" a ppt; (2) "see" my sub-folder​s and their files in "Docs To Go" or "File Manager"?

    This is written for the Playbook blog writer in the hope that he will see it here and post a blog answer. However, a reply from anyone would be appreciated. Thanks.
    [2 questions about PPBB OS 2.0+]
    Hi. Thanks for your very informative blog. I would appreciate it if you would consider writing blog tips to answer the following:
    1) Why can't I organize my files in "Documents" or "File Manager" to "see" them in their sub-folders?
    BBPB allows me to create SUB folders in the Documents folder, through my pc's access to the "Documents" folder in the Playbook. However, then I cannot "see" these created sub-folders on my BBPB after I disconnect my BBPB from my PC.
    All the files I downloaded into these "sub" folders end up all together in the file list in "DOCS TO GO", either in "Documents" or "Music" or "Video" or "Pictures" ---- but these files are NOT separated into the sub-folders I created. The same thing happens in "FILE MANAGER" i.e. all files on the Playbook are in ONE place only.
    Is the Playbook OS ever going to allow one to view sub-folders and what is in them, other than using the pc to do it? For example, it would be desirable to put all my ppt files into one folder.
    2) How do I "play" a PPT file in the BBPB?
    The BBPB "User Guide" says that I can "view, edit, or play" Powerpoint Presentations. However, although it describes how to "view" or "edit" individual slides, it does not say how to "play" ("run") a slideshow. How do you "play" a self-running slideshow?
    For example, in Windows, you can click "play.bat" (in a saved "presentation cd" folder on a cd or USB stick) to run the ppt with sound and pictures saved in that folder (you don't need the Powerpoint program itself for this, since you are using the "pptview.exe" file in the same folder to "play" it). However, after downloading all the files in this "presentation cd" folder to the Playbook, I could only see one of them, the ppt file itself ---- and there is no icon in the Playbook to "play" the slideshow, it seems. Help?!
     Thank you.
    Solved!
    Go to Solution.

    First, I use an app called "File Browser" to view those subfolders.
    As for running a powerpoint, I can open a ppt file and it runs in Documents to go. Next to the "Close" button there are three icons. The third one runs the ppt file as a slideshow.
    1. Please thank those who help you by clicking the "Like" button at the bottom of the post that helped you.
    2. If your issue has been solved, please resolve it by marking the post "Solution?" which solved it for you!

  • Some videos are semi-missing - they do not show up in File Manager apps or another app

    I have what I will call three FILER apps: File Browser, Air Browser and File Commander.  I also have MovieSRTPlayer.  Those apps appear to not register the presence of some video files that I have definitely copied to my PB.  The MovieSRTPlayer will overlay a .srt file's text over a video allowing the pb to show subtitles.  It works as long as it can find the video and srt files.
    I am definitely transferring a series of video files to the pb's video folder.  I am also transferring a companion file to that folder.  The companion file is a subtitle file in the form of an .SRT file.
    THREE file manager type apps do NOT show those files as present in the video folder.  The Video app itself does show and play those video files. 
    I have copied the files using both wifi-sharing and when they did not show up that way, I copied them using the usb cable to the pb's Z: drive and the video folder.
    As stated the dam! files play in the video app.  But they do not appear in the various filer apps.  And they also do not show in another app, one that will display the subtitle (.srt file) file overlaying the video.  In all instances it is as if the pb does not register the presence of those files on the pb.
    Now, what is interesting is that when this first cropped up, 7 files were missing - just a mix of video (no .srt files involved).  That is they showed in the video app and played but the filer programs did not show them.  I managed last night and this morning to get 7 of those to finally show by copying/moving/deleting and recopying.  But now I'm running into this brick wall again.  I have repeatedly copied two video (avi files) and their companion .srt files to the video folder.  They are in that folder (I've looked using usb and wifi-sharing) and they play in the PB's video app.  They are most certainly on my pb.
    Oh, and yes, I've rebooted a number of times. 
    Ideas?

    I have what I call 3 file manager apps.  File Browser, Air Browser and File Commander (the older free version). 
    They all show or don't show the same thing.  So files are missing.  And SIZE is not the sole determining factor.  When I was testing MovieSRT and "lost" some files I copied and renamed avi and .srt files.  So there are two extra .srt files in the Video folder.  But while they are 32kb (kilobytes) and 58kb respectively, they do NOT show up in the File managers.  The other two identical files with the names matching the .avi files do show up.  The one very large mp4 (2gb) does not show up.  A subfolder I created just as a test does not show up.  But the large mp4 and subfolder were showing up while I was actively copying the 2gb file - they would show up as the file was being copied - the filemanagers showed the file getting larger and larger and while doing so the "missing" subfolder also kept showing up.  Then once the large file was completely copied, both it and the subfolder "disappeared" - again, the large mp4 does show in the Video app and it plays.
    My persistence probably is based on the fact I was a computer programmer many eons ago!  Also, I was trying to get YOUR app to work and the avi files were not showing up in your listing but they were showing and playing in Video app (but no subtitles).  Finally, after copying/moving/re-copying over and over including moving and copying to the PB's Print folder (just since it was empty) and copying it back to the video folder (now 2 copies), the files would finally show up.  Peculiar - yup!
    Oh, one other thing - the 3 file managers all show what I will call the virtual Playbook-Demo video in their listings - your app does NOT show it.  Obviously, it is not located in the Video Folder but somewhere in the bowels of the PB.  So, the filemanagers  are relying on some "file structure" that is not fully correct.  But your app does not appear to show it.

  • Not able to get the value in ADF taskflow on load

    Hi,
    I have created an ADF task flow. I have created a ViewObject in this ADF taskflow and I am setting the value of this ViewObject using the java API.
    The issue is that i need to show the data when this ADF task flow executes first time.
    Currently I am getting the blank table in jspx page when ADF task flow is run. Now when I click on a button then I can see the required data in the table.
    Please help me to solve this issue.

    Thanks for the reply.
    I have tried placing the code to get the set the data in table and display the same from table in bean constructor, but I am getting table value as null.
    Looks like it is not able initialize the table until the jsff page gets loaded.
    Does jsff page gets loaded after bean constructor method gets called ?

  • File Management in C5-03

    Recently i was buying Nokia C5-03 because it has both 3g & Wifi as well as the price is
    affordable. i am happy with this phone except some issues regards to file management. unlike the basic Nokia OS, here i couldn't find a way to manage my files easily. as an example, if i want to move some files from Image Gallery to a New Folder by Marking what i want to move, there is no option maybe still i could not. as well as does anybody know, if there's 3rd party file management software to download i beleive it will assist me on this concern.
    Solved!
    Go to Solution.

    Sorry but i don't have idea wher to post my problem. I have C503 and problem with the camera( always when i record video and sometimes with pictures) . During recording a video everithing is ok but when i want to watch( on telephone and on pc) recording is very bad ( slow, no sound, i see pixels and video is not clear) .When i use camera to shot pictures sometimes telephone just don't want to store my images ( no to card and no to tel memory ) .
    Camera setings is on very high, 5 mega pixel for images and TV quality for video recording.
    Sorry if my english is not so good, best regards!
    PS: My C503 is purchased in april 2011 from authorised distributor and in may was already bean in service beacuse changing the display and softver problem.

  • How delete unwanted system sync in file manager?

    Hello!  As a result of testing Z10 10.1.0.2014, Blackberry Link wifi sync of files with my Windows PC, I have extra repositories listed in File Manager on the Z10.  The list shows "Device", "Media Card", "Box", and also "LT2", "LT2-1 (offline)" and "LT2-2".  The string LT2 represents the PC's hostname. 
    I would like to delete the "LT2" and "LT2-1" entries from File Manager's list, as the Link feature does not work for them (early tests).  Also I would then like to rename "LT2-2" (which does work) to just "LT2".
    How can I do that?  If not presently possible, please consider this a feature request.
    I think this is a File Manager feature request, not a Blackberry Link request.
    Thanks,
    krobe8
    Ken Roberts
    [email protected]

    Hello? Re-poster ?
    /sapdb/SID/saplog and /sapdb/SID/m_saplog are 98% used
    You're filesystem usage isn't growing!
    Anhow - Abuse button pressed...

Maybe you are looking for

  • How to identify the environment (database) Apex is running on?

    Hi We are going to have 3 environments here: Development, Test and Production (separate databases/servers for each one). As usual, the development process will move applications from Dev -> Test -> Prod. On my Apex 3 applications, I would like to vis

  • Query is used or not

    Hi, how to check Query is used or not Thanks,

  • Publishing preview my sit in safari using flash mx? please help

    For some reason now when i publish preview my webiste in flash mx by using apple f12, the safari does not open up with my work. Before It use to do this, now it don't. Recently I bough dreamweaver and when i tryed to publish my flash mx movie , dream

  • Photos gone and Time Machine Backup does not work.

    I did a rebuild of my thumbnails at iPhoto's suggestion, then left the room because it took too long. When I came back all the photos and albums etc were gone, not exclamation points but missing. I thought iPhoto could not find the library so I tried

  • PocketPCTemplate and Components vs. "ordinary" Flash

    Hi, I'm quite a newbie to Flash and trying to start with an application development for a Pocket PC (HP IPAQ 4700, Windows Pocket PC 2003). First attempt was to use the Pocket PC template and the Pocket PC Components of the CDK, but then I was missin