Class: WorkflowStatus
- Inherits:
-
Object
- Object
- WorkflowStatus
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/airavata_workflow_model_types.rb
Constant Summary collapse
- ID =
1
- STATE =
2
- DESCRIPTION =
3
- UPDATEDAT =
4
- FIELDS =
{ ID => {:type => ::Thrift::Types::STRING, :name => 'id', :optional => true}, STATE => {:type => ::Thrift::Types::I32, :name => 'state', :enum_class => ::WorkflowState}, DESCRIPTION => {:type => ::Thrift::Types::STRING, :name => 'description', :optional => true}, UPDATEDAT => {:type => ::Thrift::Types::I64, :name => 'updatedAt', :optional => true} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
288 |
# File 'lib/airavata_workflow_model_types.rb', line 288 def struct_fields; FIELDS; end |
#validate ⇒ Object
290 291 292 293 294 295 |
# File 'lib/airavata_workflow_model_types.rb', line 290 def validate raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field state is unset!') unless @state unless @state.nil? || ::WorkflowState::VALID_VALUES.include?(@state) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field state!') end end |