function to run a scheduled job manually ?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • punkyard
    Member
    • Oct 2020
    • 53

    function to run a scheduled job manually ?

    hi
    could it be possible to see a button/function, to run a job manually on a simple clic?
    like in the drop down menu : see / edit / delete / "run"
    thanks
  • item
    Active Community Member
    • Mar 2017
    • 1476

    #2
    Hello,
    it's possible but jobs is not intended for that.
    look at BPM .. advancedPack a must have
    If you could give the project a star on GitHub. EspoCrm believe our work truly deserves more recognition. Thanks.​

    Comment

    • yuri
      Member
      • Mar 2014
      • 8453

      #3
      Hi,

      Unlikely to be added. I consider it's not right to call jobs from formula. You can create your own function though.
      If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

      Comment

      • punkyard
        Member
        • Oct 2020
        • 53

        #4
        I'm not smart enough to do/code these things myself yet

        We are a group of french artists, and I' trying to figure out how to use a CRM and how to configure it
        Alas, it has to be home made as we don't have funds for this ..

        When money starts pouring, and my knowledge progressing, I'll surely consider adding an extension pack

        Originally posted by item
        Hello,
        it's possible but jobs is not intended for that.
        Item, you say it's possible, could you tell me how please?
        Plus, what is 'BPM'?

        Comment

        • item
          Active Community Member
          • Mar 2017
          • 1476

          #5
          Salut,
          Il y a facilement 10 moyen de le faire.. mais lequel sera adéquat ?
          Dans une vue Liste ? Dans une vue Detail ? Un hook suffirait ?

          Créer un Job, c'est simplement creer un entity 'Job' avec l'id du Job, Name etc..
          Sinon c'est simplement dans un terminal : php -r "exec('php command.php run-job JobName');"


          PHP Code:
          $job = $em->createEntity('Job', [
          'name' => 'DateFirstLastJobs',
          'status' => 'Pending',
          'serviceName' => 'DateFirstLastJobs',
          'methodName' => 'run',
          'data' => [],
          'executeTime' => date('Y-m-d H:i:s',strtotime(date("Y-m-d H:i:s")." +15 minutes")),
          'scheduledJobId' => '5dd0cc9f5a993f775'
          ]); 
          
          BPM : Business Process Manager .. c'est contenu dans l'extension Advanced Pack qu'il faut absolument avoir !
          Business Process Management (BPM) tool provides an ability to model and automate business processes in EspoCRM. It is available in Advanced Pack extension. Documentation For more detail information how to utilize BPM tool see documentation.
          If you could give the project a star on GitHub. EspoCrm believe our work truly deserves more recognition. Thanks.​

          Comment

          • punkyard
            Member
            • Oct 2020
            • 53

            #6
            merci pour la réponse, je n'ai pas encore eu a faire avec la création manuels de Jobs mais j'y viendrai, surement grâce à ton message qui m'y invite
            pour l'instant, il y a tant à prendre et apprendre que l'obtention d'un pack ne se fera qu'après compréhension et maîtrise de la distribution de base + l'extension Immo

            nous pouvons déjà gérer : les lieux de spectacles (immo), les groupes d'artistes, les activités (taches, appels, ..), les contacts et les comptes, une entité pour les devis, les docs et modèles à partager, finir la traduction, les layouts .. apprendre à fonctionner ensemble, les profils et permissions, ... fffff tu vois, nous sommes occupés ^^

            voudrais me dire en deux mots quel intérêt tu trouve à l'aAdvance Pack (hormis la facturation et les rapports) ?
            merci encore !

            Comment

            Working...