Activiti-Rest-Client

 view release on metacpan or  search on metacpan

Changes  view on Meta::CPAN

0.1259  2020-12-17 09:11:46 CET
   - timer jobs have different execute path in flowable

0.1258  2020-12-09 10:04:22 CET
   - add support for timer-jobs and suspended-jobs from flowable

0.1257  2020-11-07 13:53:23 CET
   - add option keep_alive for client

0.1256  2020-10-21 09:45:20 CEST
   - print debug information to STDERR instead of STDOUT

0.1255  2020-06-03 11:28:58 CEST
   - add support for deadletter jobs from flowable

lib/Activiti/Rest/Client.pm  view on Meta::CPAN

    params => {},
    method => "POST",
    headers => {
      'Content-Type' => "application/json",
      Content => encode_json({ action => "move" })
    }
  );
  Activiti::Rest::Response->from_http_response($res);
}

sub timer_jobs {
  my($self,%args)=@_;
  my $res = $self->ua->request(
    path => "/management/timer-jobs",
    params => \%args,
    method => "GET"
  );
  Activiti::Rest::Response->from_http_response($res);
}

sub timer_job {
  my($self,%args)=@_;
  my $res = $self->ua->request(
    path => "/management/timer-jobs/".uri_escape($args{jobId}),
    params => {},
    method => "GET"
  );
  Activiti::Rest::Response->from_http_response($res);
}

sub execute_timer_job {
  my($self,%args)=@_;
  my $res = $self->ua->request(
    path => "/management/timer-jobs/".uri_escape($args{jobId}),
    params => {},
    method => "POST",
    headers => {
      'Content-Type' => "application/json",
      Content => encode_json({ action => "move" })
    }
  );
  Activiti::Rest::Response->from_http_response($res);
}



( run in 0.487 second using v1.01-cache-2.11-cpan-49f99fa48dc )