URLExternal task stuck

Hi,
I am setting up a simple workflow where I want to modify the favorites of all users.

Since I am new to the java side of the workflow development I need some steps to be clarified. So here's what I did:
1) Set up a workflow in WFM (see attached .ipm file).
2) The workflow has only one task that is set up with command=http://$IW_SERVER/iw-cc/urlexternaltask
and ClassName=gc.dfait.iwov.workflow.favorites.RestoreFavorites.
3) The RestoreFavorites.java file is located in the D:\iw-home\local\config\lib\content_center\customer_src\src.
4) After all this set up, I ran the make_toolkit script and I see that the RestoreFavorites.class file is created this folder: D:\iw-home\local\config\lib\content_center\customer_out\src\gc\dfait\iwov\workflow\favorites (based on the package name in the .java file).

With this I ran the workflow the one and only task in the workflow is stuck.
Please see the attacked .zip file for the wfm .ipm and .java files.

The java program does not do anything. I am testing only the call back so that the wf would end,nothing fancy.

Please see the attachef zip file.

Thanks for your help in advance.
Anna

Comments

  • Did you bother to look at the log files?
    Run the workflow then check iwhome/local/logs/iwui/servletd_out.log, you might find that you have "noClass found" error which means the wf engine can't find your java class. If you don't get that error then you code is being invoked and you just need to add some debugging statements to find your issue.
  • I did check that log file already.

    I don't see any "noClassfound" message. The only thing I see after I run the workflow is the following:

    2010-03-19 12:11:33,111 [http-8080-2] WARN com.interwoven.ui.datacapture.core.dcxp.DTDNodeOrderingStrategy () - Error reading DTD http://localhost/iw-cc/datacapture6.0.dtd. Message: At line 2, column 3: Unexpected token: LT(null)
    My java file simply does a task transtion and it compiles ok too.

    There is really nothing to debug.

    Anna.
  • You're using the wrong task in your workflow. It needs to be URL External Task, not External Task.

    This should be in the URI of your URL External Task:
    http://$IW_SERVER/iw-cc/urlexternaltask

    Then you'll need a ClassName variable in the task variable, and point it to the package class. (ex. gc.dfait.iwov.workflow.favorites.RestoreFavorites)

    You might want to put some System.out.println so that you can see your
    workflow is running in servletd_out.log.

    Also, the better practice is to make your classes into jar files and place it in customer_src/lib, then run make_toolkit.ipl. This is assuming that the project will take more than one class.
    Hi,
    I am setting up a simple workflow where I want to modify the favorites of all users.

    Since I am new to the java side of the workflow development I need some steps to be clarified. So here's what I did:
    1) Set up a workflow in WFM (see attached .ipm file).
    2) The workflow has only one task that is set up with command=http://$IW_SERVER/iw-cc/urlexternaltask
    and ClassName=gc.dfait.iwov.workflow.favorites.RestoreFavorites.
    3) The RestoreFavorites.java file is located in the D:\iw-home\local\config\lib\content_center\customer_src\src.
    4) After all this set up, I ran the make_toolkit script and I see that the RestoreFavorites.class file is created this folder: D:\iw-home\local\config\lib\content_center\customer_out\src\gc\dfait\iwov\workflow\favorites (based on the package name in the .java file).

    With this I ran the workflow the one and only task in the workflow is stuck.
    Please see the attacked .zip file for the wfm .ipm and .java files.

    The java program does not do anything. I am testing only the call back so that the wf would end,nothing fancy.

    Please see the attachef zip file.

    Thanks for your help in advance.
    Anna
  • Thanks for your help.
    So here's what I did. I changed the external task to URL task and set variable for ClassName as gc.dfait.iwov.workflow.favorites.RestoreFavorites. The URI is set to https://$IW_SERVER/iw-cc/urlexternaltask. I also put some print statement in the .java file and rebuilt the web app.

    Still no success. I think I am missing something entirely big here.

    Sorry for bothering you guys but would really appreciate it if you can start me up with java for wf.

    Here is a section of the servletd_out log file.

    2010-03-19 15:12:57,213 [http-8080-3] WARN com.interwoven.ui.datacapture.core.dcxp.DTDNodeOrderingStrategy () - Error reading DTD http://localhost/iw-cc/datacapture6.0.dtd. Message: At line 2, column 3: Unexpected token: LT(null)
    Anna
  • What do you mean rebuilt the webapps?
    Did you go into iw-home/install and ran install_webapps.ipl?
    Or go into:
    iw-home/local/config/lib/content_center/customer_src
    and run
    make_toolkit.ipl?
    Thanks for your help.
    So here's what I did. I changed the external task to URL task and set variable for ClassName as gc.dfait.iwov.workflow.favorites.RestoreFavorites. The URI is set to https://$IW_SERVER/iw-cc/urlexternaltask. I also put some print statement in the .java file and rebuilt the web app.

    Still no success. I think I am missing something entirely big here.

    Sorry for bothering you guys but would really appreciate it if you can start me up with java for wf.

    Here is a section of the servletd_out log file.

    2010-03-19 15:12:57,213 [http-8080-3] WARN com.interwoven.ui.datacapture.core.dcxp.DTDNodeOrderingStrategy () - Error reading DTD http://localhost/iw-cc/datacapture6.0.dtd. Message: At line 2, column 3: Unexpected token: LT(null)
    Anna
  • Ok, here you go.

    Load up your Workflow Modeler, load wf1.ipm file. Publish the workflow.

    Put RestoreFavorites.jar file in
    iw-home/local/config/lib/content_center/customer_src/lib directory

    Go to customer_src directory, run
    iw-home/bin/make_toolkit.ipl

    Add the following to your available_models.xml file:

    [html]








    [/html]
    You'll see that it prints the:
    Running gc.dfait.iwov.workflow.favorites.RestoreFavorites

    in your serlvetd_out.log file. If you tail it, you will see it as the workflow runs.

    All it does is go from Start Task, to the External Task which prints out the "Running gc.dfait.iwov...." and then goes to the DummyTask. The DummyTask will wait for one minute and go to the EndTask.

    I've also included the java source file. You should be able to see follow it easily, you just need to make sure some of the cssdk jars is in your classpath when you build it.
  • Hi Anna,

    Is this issue got resolved because I am also getting the exact error

    2010-06-30 05:15:33,964 [http-8080-Processor23] WARN com.interwoven.ui.datacapture.core.dcxp.DTDNodeOrderingStrategy (sumit.k.katre) - Error reading DTD http://localhost/iw-cc/datacapture6.0.dtd. Message: At line 2, column 3: Unexpected token: LT(null)

    I tried all possible solutions members have suggested but still getting the same mentioned error which you were getting.

    Thanks & Regards
    SUMIT KATRE
  • We are also facing the same issue on TS 7.2.1 on Windows 2008. Could you please let us know if this was resolved? We followed the steps provided here but it did not help.
  • We are also facing the same issue on TS 7.2.1 on Windows 2008. Could you please let us know if this was resolved? We followed the steps provided here but it did not help.
    Can you check if there are any error messages in server.log file?
    Is server able to run your custom class file, make sure there are not any class not found exceptions. It will be helpful if you can mention what are the steps done so far so that it would be helpful to point at right direction.
TeamSite Developer Resources

  • Docker Automation

  • LiveSite Content Services (LSCS) REST API

  • Single Page Application (SPA) Modules

  • TeamSite Add-ons

If you are interested in gaining full access to the content, you can register for a My Support account here.
image
OpenText CE Products
TeamSite
APIs