Kernel::System::ProcessManagement::DB::Entity
Process Management DB Entity backend
Don't use the constructor directly, use the ObjectManager instead:
my $EntityObject = $Kernel::OM->Get('Kernel::System::ProcessManagement::DB::Entity');
generate unique Entity ID
my $EntityID = $EntityObject->EntityIDGenerate( EntityType => 'Process', # mandatory, 'Process' || 'Activity' || 'ActivityDialog' # || 'Transition' || 'TransitionAction' UserID => 123, # mandatory );
Returns:
$EntityID = 'P1';
set sync state for an entity.
my $Success = $EntityObject->EntitySyncStateSet( EntityType => 'Process', # 'Process' || 'Activity' || 'ActivityDialog' # || 'Transition' || 'TransitionAction', type of the # entity EntityID => 'P1', SyncState => 'not_sync', # the sync state to set UserID => 123, );
gets the sync state of an entity
my $EntitySyncState = $EntityObject->EntitySyncStateGet( EntityType => 'Process', # 'Process' || 'Activity' || 'ActivityDialog' # || 'Transition' || 'TransitionAction', type of the # entity EntityID => 'P1', UserID => 123, );
If sync state was found, returns:
$EntitySyncState = { EntityType => 'Process', EntityID => 'P1', SyncState => 'not_sync', CreateTime => '2011-02-08 15:08:00', ChangeTime => '2011-02-08 15:08:00', };
If no sync state was found, returns undef.
deletes sync state of an entity.
my $Success = $EntityObject->EntitySyncStateDelete( EntityType => 'Process', # 'Process' || 'Activity' || 'ActivityDialog' # || 'Transition' || 'TransitionAction', type of the # entity EntityID => 'P1', UserID => 123, );
deletes all entries .
my $Success = $EntityObject->EntitySyncStatePurge( UserID => 123, );
gets a list of sync states.
my $EntitySyncStateList = $EntityObject->EntitySyncStateList( EntityType => 'Process', # optional, 'Process' || 'Activity' || 'ActivityDialog' # || 'Transition' || 'TransitionAction', type of the # entity SyncState => 'not_sync', # optional, only entries with this sync state UserID => 123, );
Returns:
$EntitySyncStateList = [ { EntityType => 'Process', EntityID => 'P1', SyncState => 'sync_started', CreateTime => '2011-02-08 15:08:00', ChangeTime => '2011-02-08 15:08:00', }, ... ];
This software is part of the OTRS project (https://otrs.org/).
This software comes with ABSOLUTELY NO WARRANTY. For details, see the enclosed file COPYING for license information (GPL). If you did not receive this file, see https://www.gnu.org/licenses/gpl-3.0.txt.