Bentley Communities
Bentley Communities
  • Site
  • User
  • Site
  • Search
  • User
  • Welcome
  • Products
  • Support
  • About
  • More
  • Cancel
AssetWise ALIM
  • Product Communities
  • AssetWise
  • AssetWise ALIM
  • More
  • Cancel
AssetWise ALIM
AssetWise ALIM - Wiki Event Handler and Automation
    • Sign in
    • -AssetWise ALIM - Wiki
      • +1. Planning and Installation
      • -2. Configuring eB
        • +Brava Configuration
        • +Client Side Configuration
        • +Database
        • +Director
        • +eB Web
        • +Enabling Services
        • -Event Handler
          • Event Handler and Automation
        • Getting error while connecting to ALIM Import/Export tool (v1.0.1.48) with IMS login
        • +Layout Editor
        • +Logon and Security Access Issues
        • +Permissions
        • +SMC Communities
        • +System Defaults
        • +Templates and Classes
      • +3. eB Objects
      • +4. eB Products and Services
      • +5. AssetWise ALIM LEARNServer - Videos and Presentation
      • +6. AssetWise Release Information
      • +7. Resolved Bugs
      • +8. Wikis to be assigned
      • A file added to a document is shown to have "UNKNOWN MIME TYPE"
      • ALIM eB - internet access needs
      • ALIM Web error - You need at least the 'View' permission on the 'Organization'
      • AssetWise (v. 16.7.60) What's New and ReadMe Files
      • AssetWise CONNECT ALIM login error - The login URL is not whitelisted for authentication.
      • Brava viewer does not display any markups (or markup layers)
      • Bulk Export job stuck
      • Bulk Import results in an error job in the work queue - Failed to Import Documents. Failed to get the files from the repositories.
      • Changes to a repository's properties are not saved
      • COLD process gets error creating new documents
      • Director displays text in small font size which is hard to read
      • Director's Basket Correct Spelling not working
      • Documents can only be found in a wildcard search but not by their full document numbers (prefixes)
      • eB Capture (Kofax Connector) Export Error
      • eB FilePlan rules incompatibilities
      • eB Services (sub-services) do not shut down properly when the eB Service Manager shuts down or restarts
      • eBSMC or Director error - This app can't be activated by the Built-in Administrator
      • eBweb Error When Launching or Viewing Files - Correlation code: 3e7d 19cf-4bf4-4f56-ad58-23133662dff0
      • eBweb user gets a "You don't have the required permission. You need at least the View permission on the 'folder'" error
      • Error accessing an ALIM website - There is an error with the current repository configuration. Please check configuration and ensure base end points are correct.
      • Error creating or deleting objects with a MVA (multi-value attribute)
      • Error Expanding an Auto Filing folder - The query syntax is invalid
      • Error when performing searches (or running reports) in eBweb - Error executing child request for ReportWizard.aspx
      • Export Connector error - eB API ChangeHost/connect
      • Getting Deadlock Error while importing data with ALIM Import/Export tool
      • Getting TimeOut error while expanding Organization and Location in Explorer (eB director)
      • How to delete the files listed under Favorites -> My Downloads?
      • License Management Tool (LMT) gets an error saying "Failed to contact the license server"
      • NED error message - The ProtoProxy is already set
      • Need to delete old publisher packages based on creation time
      • Need to find out users' logon activities
      • Not able to see the edit button, also the actions tab was not showing the Approve, Delete options
      • Question: Can the data and files for ALIM be encrypted?
      • Rendition Job processed by the Interplot Engine failed to create an instance of COM component - error: 8001010a
      • Setting the file name character replacement technique in eB
      • SSIS Connection Error with SSL Certificates
      • +The "New Revision" link/command is missing from the Actions menu
      • The module "adobepdflwrapper.dll" failed to load.
      • The “Email Transmittal(s)” option is missing from a Distribution Order/Transmittal
      • User cannot delete a document, getting error "The selected object is subject to an Approval Workflow and may not be deleted while the workflow is active"
      • User cannot edit (add/remove) the Projects related to a Distribution Order
      • User cannot Edit Document Title in ALIM Web
      • User cannot subscribe to documents - gets error "This Subscriber already exists for Delivery Def 1"
      • User cannot unapprove a document which is not Change Controlled
      • User get STARTTLS error with smtp.office365.com
      • User gets a "Failed to transfer" error message when trying to upload a file using eBweb
      • User gets a "PreventCache" or "502" error when tying to view a large multipage file in Brava
      • User gets a "value is out of range" error in the eB service properties screen
      • User gets a failed job in the mail queue with error "Could not resolve the email address"
      • User gets a timeout error using the ALIM Import Export Tool
      • User gets a Windows Security prompt when attempting to access an ALIMweb site
      • User gets an "Failed to retrieve a valid file cache response" error when attempting to view files using the Brava viewer
      • User gets an "Unable to find a valid user account..." in eBSMC when clicking on a community which uses Bentley Sign-On (IMS Authentication)
      • User gets an error about dependent renditions when processing disposition order list items
      • User gets an error batch in the Kofax Batch Manager regarding BAR CODE NUMBER
      • User gets an error opening excel files
      • User gets an error regarding certificate, security binding when attempting to run the eB System Management Console
      • User gets an error saying "Blazon is taking too long to write file to disk" when attempting to render a file
      • User gets an error uploading a PDF file: 'The signature of the uploaded file does not match that sent by the client'
      • User gets an error when trying to create new Oracle Data Source in the eBSMC
      • User gets an error when trying to unapprove a document
      • User gets an extra "Please click on the files that you want to launch" prompt in internet explorer
      • User gets an Id < 1 error when opening user preferences or system preferences
      • User gets error in a report - The multi-part identifier "j12t0.pdm_file_id" could not be bound
      • User gets error on various screens or does not see new functionalities in ALIM Web after an upgrade
      • User needs to find documents with hidden file(s)
      • User receives an error saying "Root element is missing" when trying to run eB System Management Console eBSMC
      • Users are not able to launch or upload files in a high availability (HA) environment
      • Users get error "No folder could be found that matches the supplied identifier" when trying to delete a folder from the System tree in Director
      • Users get error while accessing ALIM Web - The size of the request headers is too long
      • What are the maximum values I can set for Max Asynchronous Jobs and Max Asynchronous Jobs Per Type?
      • When a new Placeholder is created in Assetwise it is not displaying the ProjectWise Link in Assetwise for that Placeholder
      • Where can I create a service request?
      • Work queue jobs fail with error "Could not resolve the email address for all the recipients"
    • +AssetWise Client
    • +eB - Training Recording
    • eB Create Backup and Restore
    • +eB Standard Viewer
    • Error using Bentley Sing-On (IMS)
    • External user failed to access ALIM site
    • Firewall File and Port Exclusion list
    • Maharashtra Metro Bulk export issue
    • Maharashtra Metro Rail Bulk Update of Tags not working(Customization)
    • NED Menu options
    • Troubleshooting logging on in using IMS as your authentication method

     
     Questions about this article, topic, or product? Click here. 

    Event Handler and Automation

    Applies To
    Product(s): eB Director
    Version(s): 15.x.x,16.x.x
    Environment: N/A
    Area: Events
    Subarea: N/A
    Original Author: Manav Bhardwaj, Bentley Technical Support Group

     

     


     


     

     

     

     

     

    Event Handler and Engine Customization

     

    Automation Description

      1. When a document is changed, change it’s remarks to something.
     

           a. We are interested in events that occur when a document changes -  therefore define a new automation on a specific document class.

     

     

     

         b. Following changes the ‘remarks’ of the document that triggered the action:

      


           c. The ‘Document to Change’ field is the ID of the object to change, ‘Id’ equates to the document that triggered the action, if you click the button to the right of the textbox you’ll get a list of available Id’s – since you are changing a document you can only pick a document that is in some way directly related to the object that triggers the action (in this case also a document).

      

           d. So if we save, then change a document of this class, the remarks will be updated each time:


     

     

     

            e. An alternative would be to change a field on an object different to the one that triggered the action, I’ll pick child documents:

     

     

           f. If you ignore the ‘where’ clause for a moment, this would change the remarks on ALL child documents for the object that triggered the event.

     

          g. The where clause I’ve selected limits it to one document, if you read the whole screen it now says ‘change the remarks of all child documents where the parent document is the one that triggered the event and the prefix of the child document is D-0005’. (This is a silly example,  I would have like to rather had a where clause to filter on child class for example but this is currently limited to what the new search can do). 


                   i.   Notice I said ‘Children.Right.Code’ (the code of the child document) and not just ‘Code’ (the code of the document that triggers the action).

     

      2. Change an attribute of a document that is related to a work order when the work order is changed.

           a. In this case we want to listen for events on work orders, so define and automation on a work order class.

     

     

           b. When you choose to change an attribute, you have to say which objects attribute to change – this object must be related to the object (a work order in this case) that triggers the event.

               
    i.   If I just said ‘Id’ in the ‘Object to Change’ field it would change an attribute of the work order that triggers the event.

              
    ii.   I chose ‘Documents.Document.Id’ which is documents related to a work order.

      

          c. The ‘Attribute to Change’ field is obviously the attribute that needs changing – the list you can pick from is decided by the type of object in the ‘Object to Change’ field. In this case I’ve chosen to change the attribute of a document related to the work order so I  can only choose document attributes.
     

          d. The where clause is again to narrow when the action is executed, in this case I’m just saying while the work order that triggered the event is still not approved.

               i.  (If we had the option to search on related documents ‘subject data’ field, I could for example say ‘ApprovalStatus = ‘N’ AND Documents.Document.SubjectData = ‘Y’ to only perform the action when the WO is not approved and the document is subject data).

     

    Just to recap the tricky bits:

    • The class for which you create automations decides what the object type is that must be modified to trigger an event.
    • The object to change must be the object that triggers the event or another object directly related to it.
    • The ‘attribute to change’ must be of the same type than the ‘object to change’
    • The where clause refines the criteria for when or on which objects the action is performed. If you want to create criteria for objects related to the one that triggers the action you must use the appropriate criteria (which may be limited at this time), i.e. if object to change is ‘Documents.Document.Id’ then the criteria will have to be ‘Documents.Document.<field>’ to have any effect.

     

    I Hope the above example will help you to do the Automation for required Events!

     

    • SMC
    • Admin
    • Automation
    • Move Files
    • eB
    • eB SMC
    • eB Director
    • documents
    • Share
    • History
    • More
    • Cancel
    • Manav Created by Bentley Colleague Manav
    • When: Thu, Sep 12 2013 11:31 AM
    • Don Bui Last revision by Bentley Colleague Don Bui
    • When: Tue, Mar 26 2019 4:42 PM
    • Revisions: 5
    • Comments: 0
    Recommended
    Related
    Communities
    • Home
    • Getting Started
    • Community Central
    • Products
    • Support
    • Secure File Upload
    • Feedback
    Support and Services
    • Home
    • Product Support
    • Downloads
    • Subscription Services Portal
    Training and Learning
    • Home
    • About Bentley Institute
    • My Learning History
    • Reference Books
    Social Media
    •    LinkedIn
    •    Facebook
    •    Twitter
    •    YouTube
    •    RSS Feed
    •    Email

    © 2021 Bentley Systems, Incorporated  |  Contact Us  |  Privacy |  Terms of Use  |  Cookies