BPM-Engine

 view release on metacpan or  search on metacpan

lib/BPM/Engine/Store/Result/ActivityInstance.pm  view on Meta::CPAN

package BPM::Engine::Store::Result::ActivityInstance;
BEGIN {
    $BPM::Engine::Store::Result::ActivityInstance::VERSION   = '0.01';
    $BPM::Engine::Store::Result::ActivityInstance::AUTHORITY = 'cpan:SITETECH';
    }

use namespace::autoclean;
use Moose;
use DateTime;

BEGIN {
  extends qw/BPM::Engine::Store::Result/;
  with    qw/BPM::Engine::Store::ResultBase::ActivityInstance
             BPM::Engine::Store::ResultRole::ActivityInstanceJoin
             BPM::Engine::Store::ResultRole::WithAttributes/;
  }

__PACKAGE__->load_components(qw/InflateColumn::Serializer/);
__PACKAGE__->table('wfe_activity_instance'); #process_token
__PACKAGE__->add_columns(
    token_id => {
        data_type         => 'INT',
        is_auto_increment => 1,
        is_nullable       => 0,
        extras            => { unsigned => 1 },
        size              => 11,
        },
    parent_token_id => {
        data_type         => 'INT',
        is_nullable       => 1,
        extras            => { unsigned => 1 },
        size              => 11,
        },
    process_instance_id => {
        data_type         => 'INT',
        extras            => { unsigned => 1 },
        is_foreign_key    => 1,        
        is_nullable       => 0,
        },
    activity_id => {      # process state
        data_type         => 'INT',
        is_foreign_key    => 1,        
        is_nullable       => 0,
        extras            => { unsigned => 1 },
        },
    transition_id => {    # the transition this instance is a result of
        data_type         => 'INT',
        is_foreign_key    => 1,        
        is_nullable       => 1,
        },
    prev => {             # the activity instance this instance was derived from
        data_type         => 'INT',
        is_foreign_key    => 1,
        is_nullable       => 1,
        },
    workflow_instance_id => { # (internal) state machine
        data_type         => 'INT',
        extras            => { unsigned => 1 },
        is_foreign_key    => 1,
        is_nullable       => 1,
        size              => 11,
        },
    tokenset => {         # upstream split, of which this is a branch
                          # (only relevant to instances within a cycle)
        data_type         => 'INT',
        is_nullable       => 1,
        extras            => { unsigned => 1 },



( run in 0.972 second using v1.01-cache-2.11-cpan-39bf76dae61 )