Results 1 to 7 of 7

Thread: How to trick the Workflow

  1. #1
    chrislynch8's Avatar
    chrislynch8 is offline Sugar Community Member
    Join Date
    Oct 2007
    Location
    Cork, Ireland
    Posts
    747

    Default How to trick the Workflow

    Hi,

    I have a workflow that I set up to trigger when a date is within a certain time say 30days from now. the problem is that the workflow will only trigger and these dates that are set or edited after the workflow has been created?

    Any ideas on how to trick the workflow into thinking these dates are all set after it was and have it trigger correctly. I have over 15000 dates, so I really do not want to have to go in a edit each record at a time

    Rgds
    Chris
    Linkedin Profile:Chris Lynch

    FDC IT Solutions
    FDC House
    Wellington Road
    Cork
    Ireland

  2. #2
    dtokeefe's Avatar
    dtokeefe is offline Sugar Community Member
    Join Date
    Mar 2005
    Location
    Sao Paulo, Brasil
    Posts
    671

    Default Re: How to trick the Workflow

    Change the date on the server for testing.
    David O'Keefe
    Lampada Global Services
    SugarCRM Gold Partner
    USA: +1 908 998-2278
    BR: +55 11 3237-3110
    Skype: dtokeefe
    Email: equipe@lampadaglobal.com
    www.lampadaglobal.com

    Lampada Global delivers enterprise software and offshore programming services to customers around the world.

  3. #3
    chrislynch8's Avatar
    chrislynch8 is offline Sugar Community Member
    Join Date
    Oct 2007
    Location
    Cork, Ireland
    Posts
    747

    Default Re: How to trick the Workflow

    Hi Dan,

    I can't change the date on my File Server, any other suggestions

    Rgds
    Chris
    Linkedin Profile:Chris Lynch

    FDC IT Solutions
    FDC House
    Wellington Road
    Cork
    Ireland

  4. #4
    mapm's Avatar
    mapm is offline Sugar Community Member
    Join Date
    Aug 2006
    Location
    Portugal
    Posts
    239

    Default Re: How to trick the Workflow

    In database update the record to 30 days earlier
    --
    Mário Pereira Martins

    Javali - Administração e Desenvolvimento de Sistemas Informáticos, Lda.
    Madan Parque Edifício VI Campus da FCT/UNL
    Quinta da Torre 2829-516 Caparica Portugal
    Phone: +351 212949666 Fax: +351 212948313
    http://www.javali.pt

  5. #5
    chrislynch8's Avatar
    chrislynch8 is offline Sugar Community Member
    Join Date
    Oct 2007
    Location
    Cork, Ireland
    Posts
    747

    Default Re: How to trick the Workflow

    The date records are Tax Deadlines so I can't change them, But I did try to edit them via the database in my Dev instance but this didn't trigger it.

    It looks like I have edit the dates myself.

    Rgds
    Chris
    Linkedin Profile:Chris Lynch

    FDC IT Solutions
    FDC House
    Wellington Road
    Cork
    Ireland

  6. #6
    chrislynch8's Avatar
    chrislynch8 is offline Sugar Community Member
    Join Date
    Oct 2007
    Location
    Cork, Ireland
    Posts
    747

    Default Re: How to trick the Workflow

    Just another though, If I changed the last modidifed date in the DB using SQl, I wonder would that help, How do insert the datetime stamp into the DB in the format Sugar does?

    2010-02-11 14:30:35

    if I run an UPDATE accounts SET modified_date = ???? to acheive the above datetime?

    Rgds
    Chris
    Linkedin Profile:Chris Lynch

    FDC IT Solutions
    FDC House
    Wellington Road
    Cork
    Ireland

  7. #7
    agcopley is offline Sugar Community Member
    Join Date
    Nov 2007
    Location
    Santiago, Chile
    Posts
    204

    Default Re: How to trick the Workflow

    Quote Originally Posted by chrislynch8 View Post
    Just another though, If I changed the last modidifed date in the DB using SQl, I wonder would that help, How do insert the datetime stamp into the DB in the format Sugar does?

    2010-02-11 14:30:35

    if I run an UPDATE accounts SET modified_date = ???? to acheive the above datetime?

    Rgds
    Chris
    Chris,
    I am no expert on Sugar Workflow but I image that everytime the workflow conditions are met, a database trigger creates a new record in a special workflow table. This new record is then picked up by the workflow process (a cron php job) which does all the actions and sets the record to ´'completed". Thus for those records already written, you would need to manually create a trigger record in the special workflow table, so that the wf process can pick it up. Only updating record in the original table, e.g. accounts, may or may not fire the trigger..it depends on your conditions.

    Andrew

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Pop Ups in workflow
    By REByers in forum Help
    Replies: 1
    Last Post: 2009-03-04, 11:23 AM
  2. workflow???
    By marcelocampos in forum Portugese
    Replies: 3
    Last Post: 2008-11-14, 11:52 AM
  3. Replies: 2
    Last Post: 2007-06-20, 11:44 PM
  4. Replies: 6
    Last Post: 2007-04-17, 05:30 PM
  5. Anyone using workflow?
    By slafferty in forum Customer Support
    Replies: 2
    Last Post: 2006-12-13, 01:07 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •