Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8564913
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T17:18:12+00:00 2026-06-11T17:18:12+00:00

Okay, so I have been looking around on the internet for any examples of

  • 0

Okay, so I have been looking around on the internet for any examples of incorporating a pop-up window into an activiti/alfresco workflow, but have come up with no results. I was just wondering if anyone had any prior experience doing this, or even knew if it was possible to do such a thing?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T17:18:14+00:00Added an answer on June 11, 2026 at 5:18 pm

    What do you want to trigger the popup? I can see two things you may be trying to accomplish here, each with very different implementations.

    If you want to create a popup in the task-edit page for some particular task of a workflow, you can add a control with javascript to produce that (I am guessing you already know the basics of workflow design, if not, Jeff Potts’ tutorial is great -> http://ecmarchitect.com/images/articles/alfresco-workflow/advanced-workflow-article-2ed.pdf). To do this, create a file in tomcat/shared/classes/alfresco/web-extension/site-webscripts/org/alfresco/components/form/controls, for instance: tomcat/shared/classes/alfresco/web-extension/site-webscripts/org/alfresco/components/form/controls/myWorkflowPopup.ftl.
    Set up the file using freemarker syntax including javascript to create a popup how you like in the event you like – I am not sure from your post whether you want a pop-up browser window, a little javascript alert or a YUI dialog, but you could do any of these. Similarly I am not sure how you want to trigger this – from a button, when someone chooses ‘Approve’ in a form field, whatever. Once you have setup the control, you can add it to the workflow task.
    To add the control, edit tomcat/shared/classes/alfresco/web-extension/share-config-custom.xml; find the following element and add a field element as shown ([values like this] should be replaced by proper values from your setup):

    <config evaluator="task-type" condition="[workflowNS]:[someTask]">
        <forms>
            <form>
                <field-visibility>
                    ...
                </field-visibility>
                <appearance>
                    ...
                    <field id="[workflowNS]:[someField]">
                        <control template="/org/alfresco/components/form/controls/[myWorkflowPopup].ftl" />
                    </field>
                </appearance>
            </form>
        </forms>
    </config>
    

    In case you need to use it in your popup, the value of [workflowNS]:[someField] will be available to you in the template as field.value. These steps are a little high level, but I don’t even know if this is the solution you are looking for so I can give more detail if you need.

    The other possibility is that you are looking for a popup that is TRIGGERED by a workflow, but appears independent of any of the workflow UI. In this case we split down into another two possibilities-

    a) You wish to have a popup appear on the users desktop when workflow finishes or reaches x state. I would do this with a java notification area app. I actually looked into doing this previously and opted to use emails instead when I realized how much work would be required. Good luck if you decide to try this – you’re a less lazy man than I.

    b) You wish to have a popup appear in browser (again this might be another browser window, a yui dialog or a jscript/vbscript alert/msgbox). This could be done with AJAX. If it were me I would keep an xml file in each user home folder. I would set this to have permissions too high for user’s to view, but use the run-as option in your workflow definition to run script tasks as an admin user to update these files. For instance, you may have a financial approval workflow which needs to notify everyone in the Finance group when a new request is filed. The script task would loop through the finance group, pick each user, and append an element to the xml file in their user home.

    For the popup logic I would add a javascript dependency in share-config-custom.xml so that you can have an external script file included with every page. In that script file use setInterval to GET to a uri every x seconds (the correct value of x is up to you to decide – balance performance/bandwidth usage with functionality).

    At the uri being hit by your script, set up a repo webscript to pull the data out of the current user’s user home xml file. Use an attribute on each element to keep the viewed state of the message. when the webscript runs it should return any unviewed messages (probably via json) and set them to viewed.

    Again – very high level instruction which still expect a lot of work from you, but if you have problems post back with which of these (if any) you are trying to accomplish and I may be able to help you in more detail.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Okay let me start off by saying I have been looking around a lot
Okay, so I have been searching and searching and have not found any help.
Okay so I have been trying to get into IoC lately. However, I keep
I have been looking all over the Internet for an answer to this question
Okay, I have been messing around with different sorting algorithms in Ruby; mainly variations
Ok so I have been looking around at just about every option under the
Okay, so I have been looking at the sample code below from the Ephesoft
okay i have been trying to understand this for hours i am learning VB
Okay, guys i have been trying to define a Stack , each node also
Okay. Now I give up. I have been playing with this for hours. I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.