system(system1). accountingSupplier(accountingSupplier1). accountingCustomer(accountingCustomer1). sendFreightInvoice(sendFreightInvoice1). receiveFreightInvoice(receiveFreightInvoice1). dofulfillmentProcess(dofulfillmentProcess1). dopaymentProcess(dopaymentProcess1). dofreightBillingProcess(dofreightBillingProcess1). document(freightInvoice1). raiseDoc(accountingSupplier1,freightInvoice1). relDocAgent(freightInvoice1,accountingSupplier1). relDocAgent(freightInvoice1,accountingCustomer1). process(fulfillmentProcess1). process(freightBillingProcess1). process(paymentProcess1). qualified(system1,dofulfillmentProcess1). qualified(accountingSupplier1,dofreightBillingProcess1). qualified(accountingCustomer1,dofreightBillingProcess1). qualified(system1,dopaymentProcess1). qualified(system1,dofreightBillingProcess1). qualified(accountingSupplier1,sendFreightInvoice1). qualified(accountingCustomer1,receiveFreightInvoice1). agent(X):-system(X). agent(X):-accountingSupplier(X). agent(X):-accountingCustomer(X). activity(X):-sendFreightInvoice(X). activity(X):-receiveFreightInvoice(X). activity(X):-dofulfillmentProcess(X). activity(X):-dopaymentProcess(X). activity(X):-dofreightBillingProcess(X). holds_at(P,T,H):-initiates(E,P),happens3(E,T1,H),T1